aboutsummaryrefslogtreecommitdiffstats
path: root/maketab.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-05-29 16:18:55 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-05-29 16:18:55 +0000
commit7fdcc31daa59b2567e23779649e3fb8de2924c2c (patch)
tree6a49eedb5877b291862e7ef375d92b48163807ab /maketab.c
parentc323c12cd8cea3384b83ddef0592138f8eccbe70 (diff)
downloadsrc-7fdcc31daa59b2567e23779649e3fb8de2924c2c.tar.gz
src-7fdcc31daa59b2567e23779649e3fb8de2924c2c.zip
one-true-awk: replace 0 with NULL for pointers
Also remove a redundant semicolon. Submitted upstream already.
Notes
Notes: svn path=/vendor/one-true-awk/dist/; revision=300961
Diffstat (limited to 'maketab.c')
-rw-r--r--maketab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/maketab.c b/maketab.c
index 31acd7522da5..b59e81592fdb 100644
--- a/maketab.c
+++ b/maketab.c
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
table[p->token-FIRSTTOKEN] = p->name;
printf("\nCell *(*proctab[%d])(Node **, int) = {\n", SIZE);
for (i=0; i<SIZE; i++)
- if (table[i]==0)
+ if (table[i]==NULL)
printf("\tnullproc,\t/* %s */\n", names[i]);
else
printf("\t%s,\t/* %s */\n", table[i], names[i]);