Menu

#1 Improve const-correctness

open
nobody
None
5
2007-02-06
2007-02-06
No

Would you like to apply the advices from the article "http://en.wikipedia.org/wiki/Const-correctness" to more places in your sources?
I suggest to add the key word "const" to the type specifiers for parameters like the following.
- http://stftp.cvs.sourceforge.net/stftp/stftp/ftp.h?revision=1.3&view=markup
msg (functions "ftp_write", "send_cmd")

- http://stftp.cvs.sourceforge.net/stftp/stftp/misc.c?revision=1.12&view=markup
variable "helpmsg"
src, pat (function "str_begin")
host, dir (function "p_header")

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.