diff options
| author | Toomas Soome <tsoome@me.com> | 2017-07-16 17:00:26 +0300 |
|---|---|---|
| committer | Dan McDonald <danmcd@joyent.com> | 2018-06-11 10:15:48 -0400 |
| commit | 88798f4fd0ac24b21b6fac1037f7c8f8146731bb (patch) | |
| tree | e2fd8f5aea4fe70ecdda1a461921286de9316fe8 | |
| parent | 2d3f14a1a90d3020d768a148f988fd87f368f3f7 (diff) | |
| download | illumos-joyent-88798f4fd0ac24b21b6fac1037f7c8f8146731bb.tar.gz | |
9370 tip: comparison between pointer and zero character constant
9467 tip: acutable last entry should be filled by NULL pointers
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Ken Mays <kmays2000@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
| -rw-r--r-- | usr/src/cmd/tip/acu.c | 4 | ||||
| -rw-r--r-- | usr/src/cmd/tip/acutab.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/cmd/tip/acu.c b/usr/src/cmd/tip/acu.c index d2797f7452..7b543a9011 100644 --- a/usr/src/cmd/tip/acu.c +++ b/usr/src/cmd/tip/acu.c @@ -9,8 +9,6 @@ * specifies the terms and conditions for redistribution. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include "tip.h" extern acu_t acutable[]; @@ -154,7 +152,7 @@ acutype(char *s) acu_t *p; if (s != NOSTR) - for (p = acutable; p->acu_name != '\0'; p++) + for (p = acutable; p->acu_name != NULL; p++) if (equal(s, p->acu_name)) return (p); return (NOACU); diff --git a/usr/src/cmd/tip/acutab.c b/usr/src/cmd/tip/acutab.c index db1cdb5022..e074320ff4 100644 --- a/usr/src/cmd/tip/acutab.c +++ b/usr/src/cmd/tip/acutab.c @@ -9,8 +9,6 @@ * specifies the terms and conditions for redistribution. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include "tip.h" extern int df02_dialer(char *, char *), df03_dialer(char *, char *); @@ -67,5 +65,5 @@ acu_t acutable[] = { "hayes", hayes_dialer, hayes_disconnect, hayes_abort, "at", hayes_dialer, hayes_disconnect, hayes_abort, #endif - 0, 0, 0, 0 + NULL, NULL, NULL, NULL }; |
