Skip to content

Commit 0a5be4a

Browse files
committed
Correct fix for netsnmp_ds_set_boolean
1 parent 9770fd4 commit 0a5be4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/snmp/snmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ PHP_FUNCTION(snmp_set_mib_option)
15441544
case NETSNMP_DS_LIB_MIB_PARSE_LABEL:
15451545
case NETSNMP_DS_LIB_MIB_COMMENT_TERM:
15461546
case NETSNMP_DS_LIB_MIB_REPLACE:
1547-
netsnmp_ds_set_bool(NETSNMP_DS_LIBRARY_ID, a1, (int) a2);
1547+
netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, a1, (int) a2);
15481548
break;
15491549
default:
15501550
zend_argument_value_error(1, "must be an SNMP_MIB_* constant");
@@ -1594,7 +1594,7 @@ PHP_FUNCTION(snmp_set_output_option)
15941594
case NETSNMP_DS_LIB_DONT_PRINT_UNITS:
15951595
case NETSNMP_DS_LIB_PRINT_BARE_VALUE:
15961596
case NETSNMP_DS_LIB_EXTENDED_INDEX:
1597-
netsnmp_ds_set_bool(NETSNMP_DS_LIBRARY_ID, a1, (int) a2);
1597+
netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, a1, (int) a2);
15981598
break;
15991599
default:
16001600
zend_argument_value_error(1, "must be an SNMP_OUTPUT_* constant");

0 commit comments

Comments
 (0)