summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset
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/tset
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/tset')
-rw-r--r--usr.bin/tset/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tset/map.c b/usr.bin/tset/map.c
index cee4b66..056f367 100644
--- a/usr.bin/tset/map.c
+++ b/usr.bin/tset/map.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/9/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: map.c,v 1.4 1997/08/18 07:27:53 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -142,7 +142,7 @@ next: if (*arg == ':') {
mapp->speed = baudrate(p);
}
- if (*arg == NULL) /* Non-optional type. */
+ if (*arg == '\0') /* Non-optional type. */
goto badmopt;
mapp->type = arg;
OpenPOWER on IntegriCloud