diff options
author | khali <khali> | 2015-04-28 11:17:47 +0000 |
---|---|---|
committer | khali <khali> | 2015-04-28 11:17:47 +0000 |
commit | 4ce09f0ebc36c50f1f389a6b70fac3077149580c (patch) | |
tree | 9b098153e260a7dcfb7d50c716a8d76527f948e0 | |
parent | dcde38f2d1720a6ad23cd7d4e15b21e336c3d190 (diff) | |
download | dmidecode-4ce09f0ebc36c50f1f389a6b70fac3077149580c.tar.gz |
Fix sparse warnings
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | biosdecode.c | 2 | ||||
-rw-r--r-- | dmiopt.c | 2 | ||||
-rw-r--r-- | ownership.c | 2 | ||||
-rw-r--r-- | vpdopt.c | 2 |
5 files changed, 5 insertions, 4 deletions
@@ -1,6 +1,7 @@ 2015-04-28 Jean Delvare <jdelvare@suse.de> * dmidecode.h, dmiopt.h: Fix sparse errors. + * biosdecode.c, dmiopt.c, ownership.c, vpdopt.c: Fix sparse warnings. 2015-04-27 Jean Delvare <jdelvare@suse.de> diff --git a/biosdecode.c b/biosdecode.c index daceb02..4bc964d 100644 --- a/biosdecode.c +++ b/biosdecode.c @@ -586,7 +586,7 @@ static int parse_command_line(int argc, char * const argv[]) { "dev-mem", required_argument, NULL, 'd' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, - { 0, 0, 0, 0 } + { NULL, 0, NULL, 0 } }; while ((option = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) @@ -227,7 +227,7 @@ int parse_command_line(int argc, char * const argv[]) { "from-dump", required_argument, NULL, 'F' }, { "no-sysfs", no_argument, NULL, 'S' }, { "version", no_argument, NULL, 'V' }, - { 0, 0, 0, 0 } + { NULL, 0, NULL, 0 } }; while ((option = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) diff --git a/ownership.c b/ownership.c index 5d95ebf..de44bf4 100644 --- a/ownership.c +++ b/ownership.c @@ -119,7 +119,7 @@ static int parse_command_line(int argc, char * const argv[]) { "dev-mem", required_argument, NULL, 'd' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, - { 0, 0, 0, 0 } + { NULL, 0, NULL, 0 } }; while ((option = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) @@ -99,7 +99,7 @@ int parse_command_line(int argc, char * const argv[]) { "string", required_argument, NULL, 's' }, { "dump", no_argument, NULL, 'u' }, { "version", no_argument, NULL, 'V' }, - { 0, 0, 0, 0 } + { NULL, 0, NULL, 0 } }; while ((option = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) |