if ((rval=udp_write(s,(void __far
*)_snmp.outbuf,length=end-_snmp.xmemseg,0,udi))<(int)length) { -- Dave
On 3/28/2016 2:12 PM, s...@yahoo.com [rabbit-semi] wrote: >
> I am trying to add SNMP to an RCM6750 application, and I'm using DC
10.72.
> When I compile I get three warnings about incompatible pointer types:
> line 2026: SNMP.LIB : Wrong type for parameter 2.
> line 2026: SNMP.lib : Converting long to incompatible pointer type
> __far void *
> There are two other sets of warning that are just the same at
> different places.
> The warning at line 2026 is regarding this function call:
> udp_write(s,_snmp.outbuf,length=end-_snmp.xmemseg,0,udi)
> Here is the prototype for udp_write():
> int udp_write(udp_Socket *s, void __far * datap, word len, word
> offset, _udp_datagram_info __far * udi);
> From what I can see, the problem is that the function takes a far
> pointer, and is being passed a long int.
> Is there supposed to be an updated snmp.lib file for DC10?
>
Reply by "see...@yahoo.com [rabbit-semi]"●March 28, 20162016-03-28
I am trying to add SNMP to an RCM6750 application, and I'm using DC
10.72.
When I compile I get three warnings about incompatible pointer types:
line 2026: SNMP.LIB : Wrong type for parameter 2.
line 2026: SNMP.lib : Converting long to incompatible pointer type __far void
*
There are two other sets of warning that are just the same at different
places.
The warning at line 2026 is regarding this function call: