]> granicus.if.org Git - php/commitdiff
-fixed prototype and indention
authorUwe Steinmann <steinm@php.net>
Wed, 14 Mar 2001 06:33:46 +0000 (06:33 +0000)
committerUwe Steinmann <steinm@php.net>
Wed, 14 Mar 2001 06:33:46 +0000 (06:33 +0000)
ext/hyperwave/hw.c

index bb1d46de8710cc47647e337dfad28fb243b014c4..cf5ca86590059c25bc2fade19da5502007c33fbe 100644 (file)
@@ -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);