On Tue, 2005-05-03 at 23:36, Toth, Gregory S wrote: > Here is the actual code for the method that failed,
> netsnmp_variable_list *vptr; > long this_index = 1; > vptr = put_index_data; > snmp_set_var_value(vptr, (u_char *) this_index , sizeof(this_index)); ^^^^^^^^^^ > return put_index_data; The 'snmp_set_var_value' call takes a *pointer* to the value being set. Try: snmp_set_var_value( vptr, (u_char*)&this_index, sizeof(this_index)); You need to pass the address of 'this_index'. Dave ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders