File wireless-tools-inline.patch of Package kwlan

diff -wruN kwlan-0.6.3.orig/kwlan/wlanlib.cpp kwlan-0.6.3/kwlan/wlanlib.cpp
--- kwlan-0.6.3.orig/kwlan/wlanlib.cpp	2007-08-23 14:35:18.000000000 +0400
+++ kwlan-0.6.3/kwlan/wlanlib.cpp	2011-09-26 01:48:52.795987636 +0400
@@ -42,6 +42,15 @@
 #include <kdesu/client.h>
 #include <kpassdlg.h>
 
+#define KILO	1e3
+
+static inline char *
+iw_saether_ntop(const struct sockaddr *sap, char* bufp)
+{
+  iw_ether_ntop((const struct ether_addr *) sap->sa_data, bufp);
+  return bufp;
+}
+
 int str_match(const char *a, const char *b)
 {
     return strncmp(a, b, strlen(b)) == 0;
openSUSE Build Service is sponsored by