Re: snmp_alarm_register, problem: initializer element is not constant
puccc <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, I will reply to my own question. The problem is solved,it was a very
stupid mistake.The function call was outside of any other function. This
is the result of overtired coding.
Stefan
Stefan Wolf wrote:
> 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
>
-------------------------------------------------------------------------
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