summaryrefslogtreecommitdiff
path: root/usr.bin/rs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-03-13 20:08:22 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-03-13 20:08:22 +0000
commit9fac6c32251e4d74a56854585c787d674d83fbb7 (patch)
treea706728ac4b5a173ca6e7b32f6252000aa54a50e /usr.bin/rs
parent4d052fa31b15731d9e172f7f1873b02a329d8cc5 (diff)
use NULL for pointers. from Joris Vink
Diffstat (limited to 'usr.bin/rs')
-rw-r--r--usr.bin/rs/rs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c
index 4572cc264e6..23d36daea9e 100644
--- a/usr.bin/rs/rs.c
+++ b/usr.bin/rs/rs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rs.c,v 1.10 2003/10/16 16:57:14 tedu Exp $ */
+/* $OpenBSD: rs.c,v 1.11 2004/03/13 20:08:21 tedu Exp $ */
/*-
* Copyright (c) 1993
@@ -123,7 +123,7 @@ getfile(void)
{
char *p;
char *endp;
- char **ep = 0;
+ char **ep = NULL;
int multisep = (flags & ONEISEPONLY ? 0 : 1);
int nullpad = flags & NULLPAD;
char **padto;
@@ -180,7 +180,7 @@ getfile(void)
}
}
} while (getline() != EOF);
- *ep = 0; /* mark end of pointers */
+ *ep = NULL; /* mark end of pointers */
nelem = ep - elem;
}