Menu

#1 Improve "const correctness"

open
nobody
None
5
2005-09-16
2005-07-09
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 for parameters like the following.
- newaddr (function "br_fdb_changeaddr")

http://cvs.sourceforge.net/viewcvs.py/ebtables/ebtables2/kernel/linux2.5/net/bridge/br_private.h?rev=1.1&view=markup

- matchmask (function "is_same")

http://cvs.sourceforge.net/viewcvs.py/ebtables/ebtables2/userspace/arptables/libarptc/libarptc.c?rev=1.3&view=markup

Discussion

  • Bart De Schuymer

    • status: open --> closed
     
  • Bart De Schuymer

    Logged In: YES
    user_id=369311

    I'll try to think about it in my next code reading.

     
  • Markus Elfring

    Markus Elfring - 2005-09-16
    • status: closed --> open
     
  • Markus Elfring

    Markus Elfring - 2005-09-16

    Logged In: YES
    user_id=572001

    I suggest to keep this issue open until it will be fixed.

     

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.