Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/spell/spellprog Spell NULL pointer as NULL.
details: https://anonhg.NetBSD.org/src/rev/522d074e14b3
branches: trunk
changeset: 791447:522d074e14b3
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Nov 18 19:55:59 2013 +0000
description:
Spell NULL pointer as NULL.
diffstat:
usr.bin/spell/spellprog/spellprog.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6586c95e8cef -r 522d074e14b3 usr.bin/spell/spellprog/spellprog.c
--- a/usr.bin/spell/spellprog/spellprog.c Mon Nov 18 19:55:29 2013 +0000
+++ b/usr.bin/spell/spellprog/spellprog.c Mon Nov 18 19:55:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spellprog.c,v 1.8 2007/12/15 19:44:53 perry Exp $ */
+/* $NetBSD: spellprog.c,v 1.9 2013/11/18 19:55:59 joerg Exp $ */
/* derived from OpenBSD: spellprog.c,v 1.4 2003/06/03 02:56:16 millert Exp */
@@ -455,7 +455,7 @@
if ((*t->p1)(ep - t->n1, t->d1, t->a1, lev + 1))
return 1;
if (t->p2 != NULL) {
- deriv.buf[lev] = deriv.buf[lev + 1] = '\0';
+ deriv.buf[lev] = deriv.buf[lev + 1] = NULL;
return (*t->p2)(ep - t->n2, t->d2, t->a2, lev);
}
return 0;
@@ -724,7 +724,7 @@
if (pp - space >= sizeof(space))
return 0;
}
- deriv.buf[lev + 1] = deriv.buf[lev + 2] = '\0';
+ deriv.buf[lev + 1] = deriv.buf[lev + 2] = NULL;
return val;
}
Home |
Main Index |
Thread Index |
Old Index