lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers
Date: Fri, 26 Mar 2010 13:39:29 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2

Follow-up Comment #8, patch #7130 (project lwip):

This is what cdecl has to say about the two versions:

a) (current code)
cdecl explain "struct mib_node* const snmp_nodes[28]"
declare snmp_nodes as array 28 of const pointer to struct mib_node

b)
cdecl explain "const struct mib_node* snmp_nodes[28]"
declare snmp_nodes as array 28 of pointer to const struct mib_node

So a) means the pointers are const while b) means the actual structs are
const. However, in the code, I don't see why the pointers should be const but
the structs should not.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7130>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]