Re: snmp_alarm_register, problem: initializer element is not constant

2007-10-11 Thread puccc
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

Re: snmp_alarm_register, problem: initializer element is not constant

2007-10-11 Thread Dave Shield
On 10/10/2007, Stefan Wolf <[EMAIL PROTECTED]> wrote: > I try to use the function snmp_alarm_register as follows: [snip] Yup - that looks reasonable. > When I try to compile it, I get the follwing message: > management_conn.c:40: error: initializer element is not constant > > Where line 40 i

snmp_alarm_register, problem: initializer element is not constant

2007-10-10 Thread Stefan Wolf
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, pi