[olsr-dev] [PATCH] Remove warnings for sign mismatches

Bernd Petrovitsch (spam-protected)
Thu Nov 10 19:00:43 CET 2005

The attached patch changes the signature of the functions
net_outbuffer_push() and net_outbuffer_push_reserved() (defined in
src/onet_lsr.c) to accept a "void *" with the data. The data is at most
copyed with memcpy() into another buffer. It is consistent with e.g.
write(2) and similar sys-calls and functions.
All unneeded type-casts are also removed.
It further adds "const" declarations to the parameters since they are
not change within these functions.

Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olsrd-net_outbuffer_push.patch
Type: text/x-patch
Size: 6304 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20051110/825e112f/attachment.bin>

More information about the Olsr-dev mailing list