Mercurial > unleashed > wips
changeset 19594:c891587bf335
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>
author | Toomas Soome <tsoome@me.com> |
---|---|
date | Sun, 16 Jul 2017 17:00:26 +0300 |
parents | 90a878127df2 |
children | f398f4a0b64e |
files | usr/src/cmd/tip/acu.c usr/src/cmd/tip/acutab.c |
diffstat | 2 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/tip/acu.c Sun Jun 10 23:55:44 2018 -0400 +++ b/usr/src/cmd/tip/acu.c Sun Jul 16 17:00:26 2017 +0300 @@ -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 @@ 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);
--- a/usr/src/cmd/tip/acutab.c Sun Jun 10 23:55:44 2018 -0400 +++ b/usr/src/cmd/tip/acutab.c Sun Jul 16 17:00:26 2017 +0300 @@ -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 @@ "hayes", hayes_dialer, hayes_disconnect, hayes_abort, "at", hayes_dialer, hayes_disconnect, hayes_abort, #endif - 0, 0, 0, 0 + NULL, NULL, NULL, NULL };