summaryrefslogtreecommitdiff
path: root/sysutils/xwipower/files/patch-aa
blob: cf066f0a7d19d668efc11adb64af0f767b43abae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- xwipower.c.orig	Fri Jun 23 17:53:11 2000
+++ xwipower.c	Thu Sep 19 12:53:24 2002
@@ -18,7 +18,7 @@
 #ifdef __FreeBSD__
 #include <net/if_var.h>
 #include <net/ethernet.h>
-#include <machine/if_wavelan_ieee.h>
+#include <dev/wi/if_wavelan_ieee.h>
 #include <machine/apm_bios.h>
 #else
 #include <netinet/in.h>
@@ -93,7 +93,7 @@
 
 Widget	toplevel;
 Widget	base, strip_chart_obj;
-char	*iface = NULL;
+char	*iface = "wi0";
 
 
 unsigned	long	MyColor(display, color)
@@ -223,10 +223,10 @@
 static void usage(app)
 char            *app;
 {
-    fprintf(stderr, "usage:  %s -i iface [-gd]\n", app);
+    fprintf(stderr, "usage:  %s [-i iface] [-gd]\n", app);
 	fprintf(stderr, "\tQuality of 802.11b-DS radio wave viewer.\n", app);
-    fprintf(stderr, "\t%s -i iface -c  Chart mode\n", app);
-    fprintf(stderr, "\t%s -i iface -a  Antena mode\n\n", app);
+    fprintf(stderr, "\t%s [-i iface] -c  Chart mode\n", app);
+    fprintf(stderr, "\t%s [-i iface] -a  Antena mode\n\n", app);
     exit(1);
 }