2007-06-04 14:25:53 +03:00
|
|
|
Index: wireless_tools.29/iwlib.c
|
|
|
|
===================================================================
|
|
|
|
--- wireless_tools.29.orig/iwlib.c 2007-06-04 13:22:18.700012448 +0200
|
|
|
|
+++ wireless_tools.29/iwlib.c 2007-06-04 13:22:18.773001352 +0200
|
|
|
|
@@ -667,6 +667,7 @@
|
2005-04-03 21:00:10 +03:00
|
|
|
{
|
|
|
|
struct iwreq wrq;
|
|
|
|
|
|
|
|
+ memset((char *) &wrq, 0, sizeof(struct iwreq));
|
|
|
|
memset((char *) info, 0, sizeof(struct wireless_config));
|
|
|
|
|
|
|
|
/* Get wireless name */
|
2007-06-04 14:25:53 +03:00
|
|
|
Index: wireless_tools.29/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- wireless_tools.29.orig/Makefile 2007-06-04 13:22:18.707011384 +0200
|
|
|
|
+++ wireless_tools.29/Makefile 2007-06-04 13:22:18.774001200 +0200
|
|
|
|
@@ -73,8 +73,8 @@
|
2005-04-03 21:00:10 +03:00
|
|
|
# Install directories
|
|
|
|
INSTALL_DIR= $(PREFIX)/sbin/
|
|
|
|
INSTALL_LIB= $(PREFIX)/lib/
|
|
|
|
-INSTALL_INC= $(PREFIX)/include/
|
|
|
|
-INSTALL_MAN= $(PREFIX)/man/
|
|
|
|
+INSTALL_INC= $(PREFIX)/usr/include/
|
|
|
|
+INSTALL_MAN= $(PREFIX)/usr/share/man/
|
|
|
|
|
|
|
|
# Various commands
|
|
|
|
RM = rm -f
|
2007-06-04 14:25:53 +03:00
|
|
|
@@ -102,9 +102,9 @@
|
2005-04-03 21:00:10 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Other flags
|
|
|
|
-CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
|
|
|
|
+#CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
|
|
|
|
-Wpointer-arith -Wcast-qual -Winline -I.
|
|
|
|
-#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
|
|
|
|
+CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
|
|
|
|
DEPFLAGS=-MMD
|
2007-06-04 14:25:53 +03:00
|
|
|
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG)
|
2005-04-03 21:00:10 +03:00
|
|
|
PICFLAG=-fPIC
|