From ed1591688000a5d179c4ba27793cae55590c55d2 Mon Sep 17 00:00:00 2001 From: Richard PALO Date: Wed, 4 Feb 2015 09:44:00 +0100 Subject: 5590 improper use of NULL in tools/protocmp Reviewed by: David Höppner <0xffea@gmail.com> Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/tools/protocmp/protocmp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr/src/tools/protocmp/protocmp.c') diff --git a/usr/src/tools/protocmp/protocmp.c b/usr/src/tools/protocmp/protocmp.c index a2897477cb..4cd1b56eb2 100644 --- a/usr/src/tools/protocmp/protocmp.c +++ b/usr/src/tools/protocmp/protocmp.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -685,7 +683,7 @@ main(int argc, char **argv) { int errflg = 0; int i, c; - int list_filtered_exceptions = NULL; + int list_filtered_exceptions = 0; int n_proto_refs = 0; int n_exception_files = 0; char *proto_refs[MAX_PROTO_REFS]; @@ -729,7 +727,7 @@ main(int argc, char **argv) errflg++; (void) fprintf(stderr, "Only %d exception files supported\n", - MAX_EXCEPTION_FILES); + MAX_EXCEPTION_FILES); } else { exception_files[n_exception_files++] = optarg; } @@ -745,7 +743,7 @@ main(int argc, char **argv) errflg++; (void) fprintf(stderr, "Only %d proto references supported\n", - MAX_PROTO_REFS); + MAX_PROTO_REFS); } else { proto_refs[n_proto_refs++] = optarg; } -- cgit v1.2.3