snmp_alarm_register, problem: initializer element is not constant

Stefan Wolf <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization http://freemail.web.de/
Message-ID <[email protected]>
Hello,

I try to use the function snmp_alarm_register as follows:

 
#define TIMEOUTHW 10
int pingAlarmHandle;

/* the callback function */
void pingHw(unsigned int regPing, void *clientargs){
	DEBUGMSGTL(("MANCONN", "PING"));
}

pingAlarmHandle = snmp_alarm_register(TIMEOUTHW, SA_REPEAT, pingHw, NULL);


When I try to compile it, I get the follwing message:
management_conn.c:40: error: initializer element is not constant

Where line 40 is the line, where snmp_alarm_register is called. Can anybody give me a hint, what the problem could be?


Stefan



_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.