diff options
author | Uwe Steinmann <steinm@php.net> | 2001-03-14 06:33:46 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2001-03-14 06:33:46 +0000 |
commit | 46eb8d8def8888dac7eb12fb0c41332118085cef (patch) | |
tree | f3d4b5ee253975d1d9df7f45b7d3caeb9c29c3d3 /ext/hyperwave/hw.c | |
parent | e3312da133867610567b6ecf68c96c0e0a68c564 (diff) | |
download | php-git-46eb8d8def8888dac7eb12fb0c41332118085cef.tar.gz |
-fixed prototype and indention
Diffstat (limited to 'ext/hyperwave/hw.c')
-rw-r--r-- | ext/hyperwave/hw.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c index bb1d46de87..cf5ca86590 100644 --- a/ext/hyperwave/hw.c +++ b/ext/hyperwave/hw.c @@ -244,7 +244,7 @@ int make_return_objrec(pval **return_value, char **objrecs, int count) } hidden = collhead = fullcollhead = total = 0; - collheadnr = fullcollheadnr = -1; + collheadnr = fullcollheadnr = -1; for(i=0; i<count; i++) { /* Fill the array with entries. No need to free objrecs[i], since * it is not duplicated in add_next_index_string(). @@ -1326,7 +1326,7 @@ php_printf("%s", object); } /* }}} */ -/* {{{ proto string hw_getobject(int link, int objid [, string linkroot]) +/* {{{ proto string hw_getobject(int link, int objid [, string query]) Returns object record */ PHP_FUNCTION(hw_getobject) { pval **argv[3]; @@ -1370,8 +1370,9 @@ PHP_FUNCTION(hw_getobject) { zval **keydata; lht = (*argv[1])->value.ht; - if(0 == (count = zend_hash_num_elements(lht))) + if(0 == (count = zend_hash_num_elements(lht))) { RETURN_FALSE; + } ids = emalloc(count * sizeof(hw_objectID)); zend_hash_internal_pointer_reset(lht); |