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?
SNMP on an RCM6k
Started by ●March 28, 2016
Reply by ●March 28, 20162016-03-28
Take a look at Tom's repo on github:
https://github.com/digidotcom/DCRabbit_10/blob/master/Lib/Rabbit4000/tcpip/Snmp.lib
In snmp.lib there, you'll find:
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?
>
https://github.com/digidotcom/DCRabbit_10/blob/master/Lib/Rabbit4000/tcpip/Snmp.lib
In snmp.lib there, you'll find:
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 ●March 28, 20162016-03-28