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: Bill Auerbach
Subject: [lwip-devel] [patch #7130] mib2.c: remove meaningless const qualifiers
Date: Fri, 26 Mar 2010 13:38:56 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)

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

Ok, I see.  I was showing (initially) why the original const had a warning
and thought the intent was the pointer was to const, and it should be.

You want:

struct mib_node const * const snmp_nodes[28] = {
(const struct mib_node*)&snmp_scalar, ...

because snmp_scalar is const.  If snmp_nodes[] can change, then the second
const is wrong.  I see no references to snmp_nodes though.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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