2
0

001-debian.patch 1009 B

1234567891011121314151617181920212223242526272829303132333435
  1. --- wireless-tools-27.orig/iwlib.c
  2. +++ wireless-tools-27/iwlib.c
  3. @@ -622,6 +622,7 @@
  4. {
  5. struct iwreq wrq;
  6. + memset((char *) &wrq, 0, sizeof(struct iwreq));
  7. memset((char *) info, 0, sizeof(struct wireless_config));
  8. /* Get wireless name */
  9. --- wireless-tools-27.orig/Makefile
  10. +++ wireless-tools-27/Makefile
  11. @@ -64,8 +64,8 @@
  12. # Install directories
  13. INSTALL_DIR= $(PREFIX)/sbin/
  14. INSTALL_LIB= $(PREFIX)/lib/
  15. -INSTALL_INC= $(PREFIX)/include/
  16. -INSTALL_MAN= $(PREFIX)/man/
  17. +INSTALL_INC= $(PREFIX)/usr/include/
  18. +INSTALL_MAN= $(PREFIX)/usr/share/man/
  19. # Various commands
  20. RM = rm -f
  21. @@ -81,9 +81,9 @@
  22. endif
  23. # Other flags
  24. -CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
  25. +#CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
  26. -Wpointer-arith -Wcast-qual -Winline -I.
  27. -#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
  28. +CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
  29. DEPFLAGS=-MMD
  30. XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG)
  31. PICFLAG=-fPIC