Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#13 Improve "const correctness"

open
nobody
None
5
2005-07-03
2005-07-03
Markus Elfring
No

Would you like to apply the advices from the article
"http://en.wikipedia.org/wiki/Const_correctness" to
your sources?
I suggest to add the key word "const" to the type
specifiers of parameters like "n" for the function
"names_init" and "head" for the function "list_empty".
-
http://cvs.sourceforge.net/viewcvs.py/linux-usb/usbutils/list.h?rev=1.1.1.1&view=markup
-
http://cvs.sourceforge.net/viewcvs.py/linux-usb/usbutils/names.c?rev=1.2&view=markup

Discussion