diff options
author | markm <markm@FreeBSD.org> | 2001-12-11 23:29:45 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-11 23:29:45 +0000 |
commit | 279222ba62c185d7d7ec09017bb3e7760fd333f0 (patch) | |
tree | f93561aa7b038071d9b73c25694be6d55b9b3663 /usr.bin/tset/wrterm.c | |
parent | a71a530c96758135360c74dec808c73a5fa1ef8d (diff) | |
download | FreeBSD-src-279222ba62c185d7d7ec09017bb3e7760fd333f0.zip FreeBSD-src-279222ba62c185d7d7ec09017bb3e7760fd333f0.tar.gz |
WARNS=2 fixes, use __FBSDID().
Diffstat (limited to 'usr.bin/tset/wrterm.c')
-rw-r--r-- | usr.bin/tset/wrterm.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/usr.bin/tset/wrterm.c b/usr.bin/tset/wrterm.c index 8c59368..9d14918 100644 --- a/usr.bin/tset/wrterm.c +++ b/usr.bin/tset/wrterm.c @@ -31,19 +31,21 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #ifndef lint -#if 0 -static char sccsid[] = "@(#)wrterm.c 8.1 (Berkeley) 6/9/93"; +static const char sccsid[] = "@(#)wrterm.c 8.1 (Berkeley) 6/9/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ #include <sys/types.h> + #include <ctype.h> #include <err.h> #include <stdio.h> #include <string.h> + #include "extern.h" /* @@ -64,11 +66,11 @@ wrtermcap(bp) *t++ = '\0'; /* Output terminal names that don't have whitespace. */ - sep = ""; + sep = strdup(""); while ((p = strsep(&bp, "|")) != NULL) if (*p != '\0' && strpbrk(p, " \t") == NULL) { (void)printf("%s%s", sep, p); - sep = "|"; + sep = strdup("|"); } (void)putchar(':'); |