diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-06-02 16:28:20 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-06-02 16:28:20 +0000 |
commit | 10ce5b990fc0c874071c21e47d02194337732f27 (patch) | |
tree | 0f2f94416388052f6c081577884e66064bf85dcf /contrib/one-true-awk/maketab.c | |
parent | b5253557294400621041b8ce1dfbf11e124c1575 (diff) | |
download | src-10ce5b990fc0c874071c21e47d02194337732f27.tar.gz src-10ce5b990fc0c874071c21e47d02194337732f27.zip |
Reapply r301289 by pfg:
| MFV r300961: one-true-awk: replace 0 with NULL for pointers
| Also remove a redundant semicolon.
| Also had to rebase on upstream pull.
Notes
Notes:
svn path=/head/; revision=348512
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 dbe3d241fcc8..9faed8414f10 100644 --- a/contrib/one-true-awk/maketab.c +++ b/contrib/one-true-awk/maketab.c @@ -156,7 +156,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]); |