summaryrefslogtreecommitdiff
path: root/package/kismet/patches/patch-iwcontrol_cc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
commit5042ac8e5927d0089d3902b1c37e5bcc1565d053 (patch)
treecd2be3085808c5ac59dd70f9c610c6a40bfe3ffd /package/kismet/patches/patch-iwcontrol_cc
parent401dabf66529cfb5ab47b4c78d5e25fd493eef1f (diff)
parent4d569ed1a3305c7b7abe8fa4273cea3b559cc85a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: BUGS package/autoconf/Makefile
Diffstat (limited to 'package/kismet/patches/patch-iwcontrol_cc')
-rw-r--r--package/kismet/patches/patch-iwcontrol_cc37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/kismet/patches/patch-iwcontrol_cc b/package/kismet/patches/patch-iwcontrol_cc
new file mode 100644
index 000000000..f6e8aac25
--- /dev/null
+++ b/package/kismet/patches/patch-iwcontrol_cc
@@ -0,0 +1,37 @@
+--- kismet-2010-01-R1.orig/iwcontrol.cc Mon Aug 17 21:51:36 2009
++++ kismet-2010-01-R1/iwcontrol.cc Wed Feb 17 21:59:02 2010
+@@ -32,7 +32,6 @@
+ #include <linux/if.h>
+ #include <linux/wireless.h>
+
+-#endif // wireless
+
+ #ifndef rintf
+ #define rintf(x) (float) rint((double) (x))
+@@ -697,7 +696,7 @@ int Iwconfig_Get_Chanlist(const char *interface, char
+ return -1;
+ }
+
+- bzero(buffer, sizeof(buffer));
++ memset(buffer, 0, sizeof(buffer));
+
+ memset(&wrq, 0, sizeof(struct iwreq));
+
+@@ -732,7 +731,7 @@ int Iwconfig_Get_Chanlist(const char *interface, char
+ memcpy((char *) &range, buffer, sizeof(iw_range));
+ } else {
+ /* Zero unknown fields */
+- bzero((char *) &range, sizeof(struct iw_range));
++ memset((char *) &range, 0, sizeof(struct iw_range));
+
+ /* Initial part unmoved */
+ memcpy((char *) &range, buffer, iwr15_off(num_channels));
+@@ -797,6 +796,8 @@ int Iwconfig_Get_Chanlist(const char *interface, char
+ close(skfd);
+ return chan_list->size();
+ }
++
++#endif // wireless
+
+ #endif
+