diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-13 22:11:57 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-13 22:11:57 +0000 |
commit | 76a2e4bb3d11c77f380122ace3b38427e3aa3f44 (patch) | |
tree | cb7f9cd194a6acd5a810cc40964ba1582cd3a456 /usr.bin/ul/ul.c | |
parent | 1411c0f4f749dda670fc2c716705249f2124d166 (diff) |
use \0 for char. Joris Vink
Diffstat (limited to 'usr.bin/ul/ul.c')
-rw-r--r-- | usr.bin/ul/ul.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index d7d65a6bee9..285963b6f8a 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ul.c,v 1.11 2003/06/25 21:09:45 deraadt Exp $ */ +/* $OpenBSD: ul.c,v 1.12 2004/03/13 22:11:56 tedu Exp $ */ /* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */ /* @@ -31,7 +31,7 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1980, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ul.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: ul.c,v 1.11 2003/06/25 21:09:45 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ul.c,v 1.12 2004/03/13 22:11:56 tedu Exp $"; #endif /* not lint */ #include <stdio.h> @@ -344,7 +344,7 @@ overstrike(void) } putchar('\r'); for (*cp=' '; *cp==' '; cp--) - *cp = 0; + *cp = '\0'; for (cp=lbuf; *cp; cp++) putchar(*cp); if (hadbold) { @@ -375,7 +375,7 @@ iattr(void) default: *cp++ = 'X'; break; } for (*cp=' '; *cp==' '; cp--) - *cp = 0; + *cp = '\0'; for (cp=lbuf; *cp; cp++) putchar(*cp); putchar('\n'); |