diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-09-18 14:08:40 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-09-18 14:08:40 +0000 |
commit | d030d2d2aee170303ffb5eed3183616ef7ddfbb4 (patch) | |
tree | 1ff40baf2bdd10f9e8275383efc4508d3e4dd2ad /usr.bin/tset | |
parent | 06bba905d06c4ca139b00432a8c86b2db9aeb5d8 (diff) | |
download | src-test-d030d2d2aee170303ffb5eed3183616ef7ddfbb4.tar.gz src-test-d030d2d2aee170303ffb5eed3183616ef7ddfbb4.zip |
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>
Notes
Notes:
svn path=/head/; revision=29574
Diffstat (limited to 'usr.bin/tset')
-rw-r--r-- | usr.bin/tset/map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tset/map.c b/usr.bin/tset/map.c index cee4b669ed55c..056f367c39bc0 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; |