Commit 7060e4d2 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: add __wrs_msg definition to wrsSnmp.so

Definiton of this function is needed for files linked from libwr.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 89bd2c8b
......@@ -30,6 +30,7 @@ SOURCES = \
snmp_shmem.c \
snmp_mmap.c \
util.c \
snmp_msg.c \
wrsScalar.c \
wrsGeneralStatusGroup.c \
wrsOSStatusGroup.c \
......
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
/* definition of a function __wrs_msg using snmp_vlog */
void __wrs_msg(int level, const char *func, int line, const char *fmt, ...)
{
va_list args;
/* The actual message */
va_start(args, fmt);
snmp_vlog(level, fmt, args);
va_end(args);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment