diff options
| author | Toomas Soome <tsoome@me.com> | 2018-03-28 19:14:52 +0300 |
|---|---|---|
| committer | Hans Rosenfeld <hans.rosenfeld@joyent.com> | 2018-04-23 18:15:40 +0200 |
| commit | c473d15653eff703332d18dd4922f7643a633735 (patch) | |
| tree | 7072c70867f40a81f40f0176defdab8821fd91a0 | |
| parent | c0882bf482806dc6459d8b317ff54b69d1602bf0 (diff) | |
| download | illumos-joyent-c473d15653eff703332d18dd4922f7643a633735.tar.gz | |
9404 abi: comparison between pointer and zero character constant
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
| -rw-r--r-- | usr/src/cmd/abi/spectrans/spec2map/xlator.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/src/cmd/abi/spectrans/spec2map/xlator.c b/usr/src/cmd/abi/spectrans/spec2map/xlator.c index 9d2fdbb16e..384e0441d5 100644 --- a/usr/src/cmd/abi/spectrans/spec2map/xlator.c +++ b/usr/src/cmd/abi/spectrans/spec2map/xlator.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Back-end functions for spec to mapfile converter */ @@ -268,8 +266,7 @@ xlator_start_if(const Meta_info meta_info, const int token, char *value) * XLATOR_NONFATAL on error */ int -xlator_take_kvpair(const Meta_info meta_info, const int token, - char *value) +xlator_take_kvpair(const Meta_info meta_info, const int token, char *value) { char *p; char *subv = NULL; @@ -327,7 +324,7 @@ xlator_take_kvpair(const Meta_info meta_info, const int token, case VS_INVALID: /* Both Version and Arch are invalid */ errlog(INPUT|ERROR, "Error: Invalid version and " "architecture string in spec or version file" - ": %s", subv); + ": %s", subv); free(subv); return (XLATOR_NONFATAL); @@ -880,7 +877,7 @@ writemapfile(FILE *mapfp) (void) fprintf(mapfp, " global:\n"); strtab = get_stringtable( - b->b_global_table, 0); + b->b_global_table, 0); if (strtab == NULL) { /* @@ -927,7 +924,7 @@ writemapfile(FILE *mapfp) } /* Print name of all parents. */ for (p = parents_of(b); - p != NULL && *p != '\0'; ++p) { + p != NULL && *p != NULL; ++p) { (void) fprintf(mapfp, " %s", *p); } bl = b->b_uncles; |
