cvs: /php4/ext/snmp snmp.c

From: Date: Sat, 25 Mar 2000 22:28:00 +0000
Subject: cvs: /php4/ext/snmp snmp.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-12607@lists.php.net to get a copy of this message
sterling Sat Mar 25 14:28:00 2000 EDT Modified files: /php4/ext/snmp snmp.c Log: Tid Bit More. Index: php4/ext/snmp/snmp.c diff -u php4/ext/snmp/snmp.c:1.24 php4/ext/snmp/snmp.c:1.25 --- php4/ext/snmp/snmp.c:1.24 Sat Mar 25 11:58:19 2000 +++ php4/ext/snmp/snmp.c Sat Mar 25 14:27:30 2000 @@ -17,7 +17,7 @@ | Steven Lawrance <slawrance@technologist.com> | +----------------------------------------------------------------------+ */ -/* $Id: snmp.c,v 1.24 2000/03/25 19:58:19 sterling Exp $ */ +/* $Id: snmp.c,v 1.25 2000/03/25 22:27:30 sterling Exp $ */ #include "php.h" #if defined(COMPILE_DL) @@ -201,7 +201,7 @@ memset(&session, 0, sizeof(struct snmp_session)); - session.peername = a1->value.str.val; + session.peername = (*a1)->value.str.val; session.version = SNMP_VERSION_1; /* * FIXME: potential memory leak @@ -210,11 +210,11 @@ * memory it did not allocate */ #ifdef UCD_SNMP_HACK - session.community = (u_char *) strdup(a2->value.str.val); + session.community = (u_char *) strdup((*a2)->value.str.val); #else - session.community = (u_char *) a2->value.str.val; + session.community = (u_char *) (*a2)->value.str.val; #endif - session.community_len = a2->value.str.len; + session.community_len = (*a2)->value.str.len; session.retries = retries; session.timeout = timeout; @@ -317,7 +317,7 @@ php_error(E_WARNING,"No Response from %s\n", (*a1)->value.str.val); RETURN_FALSE; } else { /* status == STAT_ERROR */ - php_error(E_WARNING,"An error occurred, Quitting\n"); + php_error(E_WARNING,"An error occurred, Quitting...\n"); RETURN_FALSE; } if (response) { @@ -328,7 +328,7 @@ } /* {{{ proto string snmpget(string host, string community, string object_id [, int timeout [, int retries]]) - Fetch an SNMP object */ + Fetch a SNMP object */ PHP_FUNCTION(snmpget) { php_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,1); }

« previous php.version4 (#12607) next »