> >     sprintf(value, "%d", auth);
> >     snmp_add_var(pdu, auth_OID, auth_OID_len, 'i', value);
> 
> That's probably where the problem is.
> You need to pass a pointer to the actual (binary) value - not a 
> printable version of it.
> 
> Try
>      snmp_add_var(pdu, auth_OID, auth_OID_len, 'i', &value);
> instead.

Thanks but:

  x.c:1022: warning: passing arg 5 of `snmp_add_var' from incompatible pointer type
  x.c:1028: warning: passing arg 5 of `snmp_add_var' from incompatible pointer type

value is

  char value[20]

so it already _was_ a pointer.





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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

Reply via email to