diff options
author | deraadt <deraadt@openbsd.org> | 2015-04-23 05:58:14 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2015-04-23 05:58:14 +0000 |
commit | 4f4672fb72056369734f97557c8bfe93a3bc746b (patch) | |
tree | b847c5ac17dd93efc6a462110f6a245e24de2b5b /usr.sbin/config | |
parent | KNF and other style adjustments to make this more scrutible. (diff) | |
download | wireguard-openbsd-4f4672fb72056369734f97557c8bfe93a3bc746b.tar.xz wireguard-openbsd-4f4672fb72056369734f97557c8bfe93a3bc746b.zip |
delete a NOTDEF of unused code
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/ukc.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.sbin/config/ukc.c b/usr.sbin/config/ukc.c index 3b4367f1c30..eb7aa5e7ff9 100644 --- a/usr.sbin/config/ukc.c +++ b/usr.sbin/config/ukc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukc.c,v 1.18 2011/10/02 22:20:50 edd Exp $ */ +/* $OpenBSD: ukc.c,v 1.19 2015/04/23 05:58:14 deraadt Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -180,9 +180,6 @@ init(void) struct cfdata *cd; short *ln; int *p; -#ifdef NOTDEF - struct winsize w; -#endif if ((cd = get_cfdata(0)) == NULL) /* get first item */ errx(1, "failed to get first cfdata"); @@ -216,25 +213,4 @@ init(void) if ((fd = open("/dev/tty", O_RDWR)) < 0) fd = 2; - -#ifdef NOTDEF - if (ioctl(fd, TIOCGWINSZ, &w) == 0) - printf("row %d col %d\n", w.ws_row, w.ws_col); - - if ((s = getenv("LINES")) != NULL) - sc_height = atoi(s); - else - sc_height = tgetnum("li"); - - if (sc_height <= 0) - sc_height = 24; - - if ((s = getenv("COLUMNS")) != NULL) - sc_width = atoi(s); - else - sc_width = tgetnum("co"); - - if (sc_width <= 0) - sc_width = 80; -#endif } |