patch-iwcontrol_cc 1014 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --- kismet-2010-01-R1.orig/iwcontrol.cc Mon Aug 17 21:51:36 2009
  2. +++ kismet-2010-01-R1/iwcontrol.cc Wed Feb 17 21:59:02 2010
  3. @@ -32,7 +32,6 @@
  4. #include <linux/if.h>
  5. #include <linux/wireless.h>
  6. -#endif // wireless
  7. #ifndef rintf
  8. #define rintf(x) (float) rint((double) (x))
  9. @@ -697,7 +696,7 @@ int Iwconfig_Get_Chanlist(const char *interface, char
  10. return -1;
  11. }
  12. - bzero(buffer, sizeof(buffer));
  13. + memset(buffer, 0, sizeof(buffer));
  14. memset(&wrq, 0, sizeof(struct iwreq));
  15. @@ -732,7 +731,7 @@ int Iwconfig_Get_Chanlist(const char *interface, char
  16. memcpy((char *) &range, buffer, sizeof(iw_range));
  17. } else {
  18. /* Zero unknown fields */
  19. - bzero((char *) &range, sizeof(struct iw_range));
  20. + memset((char *) &range, 0, sizeof(struct iw_range));
  21. /* Initial part unmoved */
  22. memcpy((char *) &range, buffer, iwr15_off(num_channels));
  23. @@ -797,6 +796,8 @@ int Iwconfig_Get_Chanlist(const char *interface, char
  24. close(skfd);
  25. return chan_list->size();
  26. }
  27. +
  28. +#endif // wireless
  29. #endif