mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
Consistently write null pointer constants as NULL instead of 0.
Found with sparse.
This commit is contained in:
12
lib/daemon.h
12
lib/daemon.h
@@ -28,12 +28,12 @@
|
||||
OPT_PIDFILE, \
|
||||
OPT_MONITOR
|
||||
|
||||
#define DAEMON_LONG_OPTIONS \
|
||||
{"detach", no_argument, 0, OPT_DETACH}, \
|
||||
{"no-chdir", no_argument, 0, OPT_NO_CHDIR}, \
|
||||
{"pidfile", optional_argument, 0, OPT_PIDFILE}, \
|
||||
{"overwrite-pidfile", no_argument, 0, OPT_OVERWRITE_PIDFILE},\
|
||||
{"monitor", no_argument, 0, OPT_MONITOR}
|
||||
#define DAEMON_LONG_OPTIONS \
|
||||
{"detach", no_argument, NULL, OPT_DETACH}, \
|
||||
{"no-chdir", no_argument, NULL, OPT_NO_CHDIR}, \
|
||||
{"pidfile", optional_argument, NULL, OPT_PIDFILE}, \
|
||||
{"overwrite-pidfile", no_argument, NULL, OPT_OVERWRITE_PIDFILE}, \
|
||||
{"monitor", no_argument, NULL, OPT_MONITOR}
|
||||
|
||||
#define DAEMON_OPTION_HANDLERS \
|
||||
case OPT_DETACH: \
|
||||
|
Reference in New Issue
Block a user