diff options
author | jamie <jamie@FreeBSD.org> | 2012-05-03 21:39:23 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2012-05-03 21:39:23 +0000 |
commit | 18b00ce05256ac1bef00083a0ce9a34fcb4c49a9 (patch) | |
tree | 5df7a5374150f5c1f64e0d5a6d4282f1c547156e /usr.sbin/jail/jail.c | |
parent | 593ade1bddc87e9ddb3e4aa2313c4f5f83bc23dc (diff) | |
download | FreeBSD-src-18b00ce05256ac1bef00083a0ce9a34fcb4c49a9.zip FreeBSD-src-18b00ce05256ac1bef00083a0ce9a34fcb4c49a9.tar.gz |
Add a meta-parameter IP__NULL to enum intparam, instead of mixing
enum values and zeroes. This keeps clang happy (and is just good form).
Submitted by: dim
Diffstat (limited to 'usr.sbin/jail/jail.c')
-rw-r--r-- | usr.sbin/jail/jail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c index d6de5ca..e827e11 100644 --- a/usr.sbin/jail/jail.c +++ b/usr.sbin/jail/jail.c @@ -81,7 +81,7 @@ static struct permspec perm_sysctl[] = { }; static const enum intparam startcommands[] = { - 0, + IP__NULL, #ifdef INET IP__IP4_IFADDR, #endif @@ -97,11 +97,11 @@ static const enum intparam startcommands[] = { IP_EXEC_START, IP_COMMAND, IP_EXEC_POSTSTART, - 0 + IP__NULL }; static const enum intparam stopcommands[] = { - 0, + IP__NULL, IP_EXEC_PRESTOP, IP_EXEC_STOP, IP_STOP_TIMEOUT, @@ -116,7 +116,7 @@ static const enum intparam stopcommands[] = { #ifdef INET IP__IP4_IFADDR, #endif - 0 + IP__NULL }; int |