[asterisk-dev] Check type selection for sizes

SF Markus Elfring elfring at users.sourceforge.net
Thu Dec 28 13:30:24 MST 2006


Hello,

I would prefer unsigned types at some places in the source code.
Would anybody like to explain the rationale for the use of signed types 
so far?

Use case:
How do you think about to use the data type "size_t" for parameters like 
"len" in the functions "send_html" and "setoption" from the data 
structure "ast_channel_tech"?
http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?rev=48958&view=markup
http://bugs.digium.com/view.php?id=8688

Are any places left over where negative values should not be stored?

Regards,
Markus


More information about the asterisk-dev mailing list