1
0

001-debian.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/iwlib.c
  2. +++ b/iwlib.c
  3. @@ -667,6 +667,7 @@ iw_get_basic_config(int skfd,
  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. --- a/Makefile
  10. +++ b/Makefile
  11. @@ -73,8 +73,8 @@ DYNAMIC_LINK= libiw.so
  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. @@ -102,9 +102,9 @@ ifdef BUILD_WE_ESSENTIAL
  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) $(WEDEF_FLAG)
  31. PICFLAG=-fPIC