diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-07-06 04:11:27 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-07-06 04:11:27 +0000 |
commit | 6f2defb96fa2f21cd08fdc9561594e0a2a6da28e (patch) | |
tree | 7ba3161c58fe5d79751a9573b5cb4f9e7bc8c79a /sbin/wsconsctl | |
parent | 96f75be0bbb501b49f22744da633d0453013032a (diff) |
add if braces to avoid compiler warnings; ok mickey
Diffstat (limited to 'sbin/wsconsctl')
-rw-r--r-- | sbin/wsconsctl/display.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/wsconsctl/display.c b/sbin/wsconsctl/display.c index 656c814326a..9e55cc37f30 100644 --- a/sbin/wsconsctl/display.c +++ b/sbin/wsconsctl/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.3 2001/06/30 02:12:57 mickey Exp $ */ +/* $OpenBSD: display.c,v 1.4 2001/07/06 04:11:26 pvalchev Exp $ */ /* $NetBSD: display.c,v 1.1 1998/12/28 14:01:16 hannken Exp $ */ /*- @@ -71,9 +71,10 @@ display_get_values(pre, fd) err(1, "WSDISPLAYIO_GTYPE"); gscr.idx = -1; - if (field_by_value(display_field_tab, &focus)->flags & FLG_GET) + if (field_by_value(display_field_tab, &focus)->flags & FLG_GET) { if (ioctl(fd, WSDISPLAYIO_GETSCREEN, &gscr) < 0) err(1, "WSDISPLAYIO_GETSCREEN"); + } else focus = gscr.idx; |