[Top][All Lists]
[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 12:48:20 +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 #3, patch #7130 (project lwip):
But that means something different than:
"struct mib_node* const snmp_nodes[28]"
which the casted pointer is assigned to. But maybe that's what it was meant
to be:
const struct mib_node* snmp_nodes[28] = {
(const struct mib_node*)&snmp_scalar, (const struct
mib_node*)&snmp_scalar,
but that doesn't compile (warning: "different 'const'-identifier"). Although
to me, that should mean "snmp_nodes is an array of 28 pointers to const struct
mib_node's" (pointer may be modified, actual variable not), whereas the
original definition seems to lack the "actual variable is const"...?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?7130>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Luca Ceresoli, 2010/03/23
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Simon Goldschmidt, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Bill Auerbach, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers,
Simon Goldschmidt <=
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Bill Auerbach, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Simon Goldschmidt, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Kieran Mansley, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Bill Auerbach, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Simon Goldschmidt, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Kieran Mansley, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Kieran Mansley, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Bill Auerbach, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Bill Auerbach, 2010/03/26
- [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers, Simon Goldschmidt, 2010/03/26