diff options
author | pfg <pfg@FreeBSD.org> | 2016-06-03 21:23:11 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-06-03 21:23:11 +0000 |
commit | f3c56b202ca8991518d5a34f9b5fbcb3e19e3de4 (patch) | |
tree | 023f875bc1740ed25d4ef1e5d4305950cb94027f /contrib/one-true-awk/parse.c | |
parent | f727892517784f5b9c91124b39142b939b54acc5 (diff) | |
download | FreeBSD-src-f3c56b202ca8991518d5a34f9b5fbcb3e19e3de4.zip FreeBSD-src-f3c56b202ca8991518d5a34f9b5fbcb3e19e3de4.tar.gz |
MFV r300961:
one-true-awk: replace 0 with NULL for pointers
Also remove a redundant semicolon.
Diffstat (limited to 'contrib/one-true-awk/parse.c')
-rw-r--r-- | contrib/one-true-awk/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/one-true-awk/parse.c b/contrib/one-true-awk/parse.c index 8304ded..753a50d 100644 --- a/contrib/one-true-awk/parse.c +++ b/contrib/one-true-awk/parse.c @@ -259,7 +259,7 @@ int isarg(const char *s) /* is s in argument list for current function? */ Node *p = arglist; int n; - for (n = 0; p != 0; p = p->nnext, n++) + for (n = 0; p != NULL; p = p->nnext, n++) if (strcmp(((Cell *)(p->narg[0]))->nval, s) == 0) return n; return -1; |