Thread (7 messages) 7 messages, 4 authors, 2011-01-13

Re: [PATCH] ipv4: devconf: start IPV4_DEVCONF_* from 0

flat view

From: David Miller <davem@davemloft.net>
Date: 2011-01-13 02:47:01

From: Lucian Adrian Grijincu <redacted>
Date: Wed, 12 Jan 2011 12:19:10 +0200
The IPV4_DEVCONF_* enums are never exposed to the userspace and it
would make code simpler to remove all the useless (-1) adjustments.
Starting values like this at "1" is usually done on purpose.

It allows "0" to be illegal or mean "none", and thus easily trapping
cases where the value fails to be initialized properly.  In this way
the illegal sentinel "0" doesn't take up any space either.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help