ports/sysutils/xwipower/files/patch-aa
2001-04-20 14:31:42 +00:00

37 lines
1 KiB
Text

--- xwipower.c.orig Fri Jun 23 17:53:11 2000
+++ xwipower.c Sat Apr 21 07:51:15 2001
@@ -18,7 +18,11 @@
#ifdef __FreeBSD__
#include <net/if_var.h>
#include <net/ethernet.h>
+#if __FreeBSD_version >= 500000
+#include <dev/wi/if_wavelan_ieee.h>
+#else
#include <machine/if_wavelan_ieee.h>
+#endif
#include <machine/apm_bios.h>
#else
#include <netinet/in.h>
@@ -93,7 +97,7 @@
Widget toplevel;
Widget base, strip_chart_obj;
-char *iface = NULL;
+char *iface = "wi0";
unsigned long MyColor(display, color)
@@ -223,10 +227,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);
}