des-testbed / libdessert

DES-SERT is the DES Simple and Extensible Routing-Framework for Testbeds that is realized as user space library and can be used to implement proactive, reactive, and hybrid routing protocols.
http://www.des-testbed.net/DES-SERT
GNU General Public License v3.0
3 stars 2 forks source link

Type conversion error from sample code.... again #2

Open ghost opened 11 years ago

ghost commented 11 years ago

In the following wiki page, the function 'dessert_sysrxcb_add' is passed a function pointer where the second argument is passed with type "size_t," where the library expects "uint32_t". Stddef defines size_t as 'int' rather than 'uint32_t.' You must define callback functions with the second argument as uint32_t.

http://www.des-testbed.net/libdessert/doc/1.07/group__ExampleDaemon.html