From: Jean-Philippe Orsini Date: Wed, 24 Sep 2014 07:17:33 +0000 (+0200) Subject: avoid to use 0 instead of NULL X-Git-Tag: v1.2.0~163 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=38fab287f76e0d136ae0736844b5d1112f640dbe avoid to use 0 instead of NULL --- diff --git a/src/main.c b/src/main.c index e9ac03f..5ca03aa 100644 --- a/src/main.c +++ b/src/main.c @@ -372,12 +372,12 @@ static void log_init() } static struct option long_options[] = { - {"version", no_argument, 0, 'v'}, - {"help", no_argument, 0, 'h'}, - {"url", required_argument, 0, 'u'}, - {"debug", required_argument, 0, 'd'}, - {"new-instance", no_argument, 0, 'n'}, - {0, 0, 0, 0} + {"version", no_argument, NULL, 'v'}, + {"help", no_argument, NULL, 'h'}, + {"url", required_argument, NULL, 'u'}, + {"debug", required_argument, NULL, 'd'}, + {"new-instance", no_argument, NULL, 'n'}, + {NULL, 0, NULL, 0} }; static gboolean initial_window_show(gpointer data)