summaryrefslogtreecommitdiffstats
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-09-18 14:08:40 +0000
committerphk <phk@FreeBSD.org>1997-09-18 14:08:40 +0000
commitd8ac4091605cafeed429956439b3365036470356 (patch)
tree86f85152c10afe3de06afc06d7738c614a3210cb /usr.bin/vgrind
parent2d831c7d21d4e39820d9fe862e7ec818476c083b (diff)
downloadFreeBSD-src-d8ac4091605cafeed429956439b3365036470356.zip
FreeBSD-src-d8ac4091605cafeed429956439b3365036470356.tar.gz
Many places in the code NULL is used in integer context, where
plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r--usr.bin/vgrind/vfontedpr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vgrind/vfontedpr.c b/usr.bin/vgrind/vfontedpr.c
index 9edb65a..7ba7da9 100644
--- a/usr.bin/vgrind/vfontedpr.c
+++ b/usr.bin/vgrind/vfontedpr.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)vfontedpr.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: vfontedpr.c,v 1.8 1997/08/25 06:36:03 charnier Exp $";
+ "$Id: vfontedpr.c,v 1.9 1997/08/26 11:08:24 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -248,7 +248,7 @@ main(argc, argv)
cpp = l_keywds;
while (*cp) {
while (*cp == ' ' || *cp =='\t')
- *cp++ = NULL;
+ *cp++ = '\0';
if (*cp)
*cpp++ = cp;
while (*cp != ' ' && *cp != '\t' && *cp)
@@ -292,7 +292,7 @@ main(argc, argv)
_escaped = FALSE;
blklevel = 0;
for (psptr=0; psptr<PSMAX; psptr++) {
- pstack[psptr][0] = NULL;
+ pstack[psptr][0] = '\0';
plstack[psptr] = 0;
}
psptr = -1;
@@ -697,7 +697,7 @@ static boolean
isproc(s)
char *s;
{
- pname[0] = NULL;
+ pname[0] = '\0';
if (!l_toplex || blklevel == 0)
if (expmatch (s, l_prcbeg, pname) != NIL) {
return (TRUE);
OpenPOWER on IntegriCloud