projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd0d430
)
avoid to use 0 instead of NULL
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Wed, 24 Sep 2014 07:17:33 +0000
(09:17 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Wed, 24 Sep 2014 07:17:33 +0000
(09:17 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
e9ac03f
..
5ca03aa
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-372,12
+372,12
@@
static void log_init()
}
static struct option long_options[] = {
}
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)
};
static gboolean initial_window_show(gpointer data)