cvs: php4 /ext/snmp snmp.c
| From: | Yasuo Ohgaki | Date: | Fri, 01 Mar 2002 03:31:02 +0000 |
| Subject: | cvs: php4 /ext/snmp snmp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9522@lists.php.net to get a copy of this message | ||
yohgaki Thu Feb 28 22:31:02 2002 EDT
Modified files:
/php4/ext/snmp snmp.c
Log:
Fix compiler warnings
Index: php4/ext/snmp/snmp.c
diff -u php4/ext/snmp/snmp.c:1.55 php4/ext/snmp/snmp.c:1.56
--- php4/ext/snmp/snmp.c:1.55 Thu Feb 28 03:26:43 2002
+++ php4/ext/snmp/snmp.c Thu Feb 28 22:31:01 2002
@@ -17,7 +17,7 @@
| Steven Lawrance <slawrance@technologist.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: snmp.c,v 1.55 2002/02/28 08:26:43 sebastian Exp $ */
+/* $Id: snmp.c,v 1.56 2002/03/01 03:31:01 yohgaki Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -315,7 +315,7 @@
}
if (st != 11) {
- sprint_value(buf,vars->name, vars->name_length, vars);
+ sprint_value((struct sbuf *)buf,vars->name, vars->name_length, vars);
}
#if 0
Debug("snmp response is: %s\n",buf);
@@ -325,7 +325,7 @@
} else if (st == 2) {
add_next_index_string(return_value,buf,1); /* Add to returned array */
} else if (st == 3) {
- sprint_objid(buf2, vars->name, vars->name_length);
+ sprint_objid((struct sbuf *)buf2, vars->name, vars->name_length);
add_assoc_string(return_value,buf2,buf,1);
}
if (st >= 2 && st != 11) {
@@ -344,7 +344,7 @@
for (count=1, vars = response->variables; vars && count != response->errindex;
vars = vars->next_variable, count++);
if (vars) {
- sprint_objid(buf,vars->name, vars->name_length);
+ sprint_objid((struct sbuf *)buf,vars->name, vars->name_length);
}
php_error(E_WARNING,"This name does not exist: %s\n",buf);
}