diff options
-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) |