]> granicus.if.org Git - php/commitdiff
fix bug 3971, SNMP now compiles on FreeBSD.
authorSterling Hughes <sterling@php.net>
Thu, 30 Mar 2000 00:19:24 +0000 (00:19 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 30 Mar 2000 00:19:24 +0000 (00:19 +0000)
ext/snmp/snmp.c

index 140bc7be71acf4b30728b77c8df85381d3c4abd6..436881981062c45d3d9a55c4daf0858fc938250d 100644 (file)
@@ -363,8 +363,7 @@ PHP_FUNCTION(snmp_set_quick_print) {
                WRONG_PARAM_COUNT;
        }
        convert_to_long_ex(a1);
-       int set_val = (*a1)->value.lval;
-       snmp_set_quick_print(set_val);
+       snmp_set_quick_print((int)(*a1)->value.lval);
 }
 /* }}} */