aboutsummaryrefslogtreecommitdiff
path: root/lib/daemon.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-05-04 13:49:42 -0700
committerBen Pfaff <blp@nicira.com>2011-05-16 13:40:47 -0700
commite3c17733704fd54fa937ed5e1e8c4b51e00961f1 (patch)
tree78dd7e21f574d1a4614df73fd79e0b239e93201c /lib/daemon.h
parent1102893de4f14a2d184afc640c9a1edf778c6a93 (diff)
Consistently write null pointer constants as NULL instead of 0.
Found with sparse.
Diffstat (limited to 'lib/daemon.h')
-rw-r--r--lib/daemon.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/daemon.h b/lib/daemon.h
index 4af98f62..eb38d5d8 100644
--- a/lib/daemon.h
+++ b/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: \