diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-06-03 21:23:11 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-06-03 21:23:11 +0000 |
commit | 9051825205e52d435bcff2c175317a562fb7d558 (patch) | |
tree | 023f875bc1740ed25d4ef1e5d4305950cb94027f /contrib/one-true-awk/maketab.c | |
parent | 95a9e5d682a483bbb1ace4f2950025a17ab36701 (diff) | |
parent | 7fdcc31daa59b2567e23779649e3fb8de2924c2c (diff) | |
download | src-9051825205e52d435bcff2c175317a562fb7d558.tar.gz src-9051825205e52d435bcff2c175317a562fb7d558.zip |
MFV r300961:
one-true-awk: replace 0 with NULL for pointers
Also remove a redundant semicolon.
Notes
Notes:
svn path=/head/; revision=301289
Diffstat (limited to 'contrib/one-true-awk/maketab.c')
-rw-r--r-- | contrib/one-true-awk/maketab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/one-true-awk/maketab.c b/contrib/one-true-awk/maketab.c index 31acd7522da5..b59e81592fdb 100644 --- a/contrib/one-true-awk/maketab.c +++ b/contrib/one-true-awk/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]); |