Menu

#13 Improve "const correctness"

open
nobody
None
5
2005-07-03
2005-07-03
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


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.