asprintf: do not redeclare on SNMP tests
asprintf: fix warnings in SNMP tests related to asprintf