diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-12-06 02:14:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-12-06 02:14:35 +0000 |
commit | ed0ef13119b0600b79a09ecaab7b6e8a725d4820 (patch) | |
tree | ac25e45529e72e422572ea6104baa92690f462f6 /usr.bin/tic/tic.c | |
parent | 93f153c898a0b816862eaf10532cbb586e2a293a (diff) |
update to ncurses-5.0-19991204
Diffstat (limited to 'usr.bin/tic/tic.c')
-rw-r--r-- | usr.bin/tic/tic.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.bin/tic/tic.c b/usr.bin/tic/tic.c index 6e31152bf7c..1f29d9770cd 100644 --- a/usr.bin/tic/tic.c +++ b/usr.bin/tic/tic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tic.c,v 1.12 1999/11/28 17:58:57 millert Exp $ */ +/* $OpenBSD: tic.c,v 1.13 1999/12/06 02:14:34 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998,1999 Free Software Foundation, Inc. * @@ -44,7 +44,7 @@ #include <dump_entry.h> #include <term_entry.h> -MODULE_ID("$From: tic.c,v 1.52 1999/09/25 22:47:54 tom Exp $") +MODULE_ID("$From: tic.c,v 1.53 1999/12/04 22:45:52 tom Exp $") const char *_nc_progname = "tic"; @@ -410,8 +410,14 @@ bool check_only = FALSE; else _nc_progname++; - infodump = (strcmp(_nc_progname, "captoinfo") == 0); - capdump = (strcmp(_nc_progname, "infotocap") == 0); + if ((infodump = (strcmp(_nc_progname, "captoinfo") == 0)) != FALSE) { + outform = F_TERMINFO; + sortmode = S_TERMINFO; + } + if ((capdump = (strcmp(_nc_progname, "infotocap") == 0)) != FALSE) { + outform = F_TERMCAP; + sortmode = S_TERMCAP; + } #if NCURSES_XNAMES use_extended_names(FALSE); #endif |