ports/sysutils/xwipower/files/patch-aa
2002-09-20 03:44:16 +00:00

34 lines
1,003 B
Text

--- 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);
}