summaryrefslogtreecommitdiff
path: root/sbin/wicontrol
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-25 22:27:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-25 22:27:51 +0000
commitceb71a912bef2d02ac90d95b832578571aca45ca (patch)
treee4b44a40008b2f61131312c8a166354d9e0719c6 /sbin/wicontrol
parentd9bfc760e5f8614b88c80d2d82c1b408e25bfba2 (diff)
pretty
Diffstat (limited to 'sbin/wicontrol')
-rw-r--r--sbin/wicontrol/wicontrol.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/wicontrol/wicontrol.c b/sbin/wicontrol/wicontrol.c
index 21b7db4a083..24b6d20ae6f 100644
--- a/sbin/wicontrol/wicontrol.c
+++ b/sbin/wicontrol/wicontrol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wicontrol.c,v 1.39 2002/06/20 19:37:36 fgsch Exp $ */
+/* $OpenBSD: wicontrol.c,v 1.40 2002/07/25 22:27:50 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -69,7 +69,7 @@
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
Bill Paul. All rights reserved.";
static const char rcsid[] =
- "@(#) $OpenBSD: wicontrol.c,v 1.39 2002/06/20 19:37:36 fgsch Exp $";
+ "@(#) $OpenBSD: wicontrol.c,v 1.40 2002/07/25 22:27:50 deraadt Exp $";
#endif
void wi_getval(char *, struct wi_req *);
@@ -533,7 +533,7 @@ wi_printaplist(iface)
len = prism2 ? WI_PRISM2_RES_SIZE : WI_WAVELAN_RES_SIZE;
- printf("\nAP Information\n");
+ printf("AP Information\n");
for (nap = 0; i < (wreq.wi_len * 2) - len; i += len) {
res = (struct wi_scan_res *)((char *)wreq.wi_val + i);
@@ -545,7 +545,7 @@ wi_printaplist(iface)
res->wi_interval = letoh16(res->wi_interval);
res->wi_capinfo = letoh16(res->wi_capinfo);
- printf("ap[%d]:\n", nap++);
+ printf("ap[%d]:", nap++);
printf("\tnetname (SSID):\t\t\t[ %s ]\n", res->wi_ssid);
printf("\tBSSID:\t\t\t\t[ %02x:%02x:%02x:%02x:%02x:%02x ]\n",
res->wi_bssid[0], res->wi_bssid[1],
@@ -588,7 +588,6 @@ wi_printaplist(iface)
}
printf("]\n");
}
- putchar('\n');
}
set_if_flags(s, iface, flags);
close(s);