[PHP-DEV] CVS update: php3/functions From: jim (php-dev <email protected>)
Date: 06/30/99

Date: Wednesday June 30, 1999 @ 15:26
Author: jim

Update of /repository/php3/functions
In directory php:/tmp/cvs-serv32753/functions

Modified Files:
        snmp.c
Log Message:
Fixes pointed out by #1636, and a little bit of tabification.

Index: php3/functions/snmp.c
diff -u php3/functions/snmp.c:1.16 php3/functions/snmp.c:1.17
--- php3/functions/snmp.c:1.16 Sun Jun 20 08:38:42 1999
+++ php3/functions/snmp.c Wed Jun 30 15:26:25 1999
@@ -27,7 +27,7 @@
    | Mike Jackson <mhjack <email protected>> |
    +----------------------------------------------------------------------+
  */
-/* $Id: snmp.c,v 1.16 1999/06/20 12:38:42 sas Exp $ */
+/* $Id: snmp.c,v 1.17 1999/06/30 19:26:25 jim Exp $ */
 
 #include "php.h"
 #include "internal_functions.h"
@@ -137,10 +137,10 @@
         struct snmp_session session, *ss;
         struct snmp_pdu *pdu=NULL, *response;
         struct variable_list *vars;
- char *objid;
- oid name[MAX_NAME_LEN];
- int name_length;
- int status, count,rootlen=0,gotroot=0;
+ char *objid;
+ oid name[MAX_NAME_LEN];
+ int name_length;
+ int status, count,rootlen=0,gotroot=0;
         oid root[MAX_NAME_LEN];
         char buf[2048];
         char buf2[2048];
@@ -150,17 +150,17 @@
         int myargc = ARG_COUNT(ht);
        
         switch(st) {
- case 4:
- st = 3; /* This is temporary until snmprealwalk() is removed */
- break;
- case 9:
- RETURN_LONG(snmp_get_quick_print()?1:0);
- case 10:
- if(myargc != 1 || getParameters(ht, myargc, &a1)) return(WRONG_PARAM_COUNT);
- convert_to_long(a1);
+ case 4:
+ st = 3; /* This is temporary until snmprealwalk() is removed */
+ break;
+ case 9:
+ RETURN_LONG(snmp_get_quick_print()?1:0);
+ case 10:
+ if(myargc != 1 || getParameters(ht, myargc, &a1)) WRONG_PARAM_COUNT;
+ convert_to_long(a1);
                 snmp_set_quick_print((int) a1->value.lval);
                 RETURN_TRUE;
- }
+ }
                                                                                                                                      
         if (myargc<3 || myargc>5 || getParameters(ht, myargc, &a1, &a2, &a3, &a4, &a5) == FAILURE) {
                 WRONG_PARAM_COUNT;
@@ -309,7 +309,7 @@
 /* {{{ proto string snmpwalk(string host, string community, string object_id [, int timeout [, int retries]])
    Return all objects under the specified object id */
 void php3_snmpwalk(INTERNAL_FUNCTION_PARAMETERS) {
- return _php3_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,2);
+ _php3_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,2);
 }
 /* }}} */
 

-- 
PHP Development Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>