md5=2100c667e69db0cde35fa2d06c8516e2
sha256=023e7f47039c1ad8615052e464f76a3cd496a423449b931036d127c56d58b2b9
+[http://www.kismetwireless.net/code/kismet-2008-05-R1.tar.gz]
+md5=6ee365d36354b4dee4945e67f8149294
+sha256=a298d44f8a6ec977021cd492a720987ded81b5c4baf5f68b36f1282a23c9f7d3
+
[http://kernel.org//pub/linux/libs/klibc/Stable/klibc-0.190.tar.bz2]
md5=6c96f954676c7b898dfe230e0f2a1fb5
sha256=5767cbb094300c5e26eb0bab588ecdbf9e5db2a637e9ae73c2efb8a62e05217e
--- /dev/null
+--- kismet_wrapper.cc
++++ kismet_wrapper.cc
+@@ -79,7 +79,7 @@ void reap(int sig) {
+ if (FD_ISSET(epipe[0], &rset)) {
+ if (fgets(ret, 2048, err) == NULL ||
+ feof(err)) {
+- if (feof(out))
++ if (!check_out || feof(out))
+ break;
+
+ fclose(err);
+@@ -98,7 +98,7 @@ void reap(int sig) {
+ if (FD_ISSET(rpipe[0], &rset)) {
+ if (fgets(ret, 2048, out) == NULL ||
+ feof(out)) {
+- if (feof(err))
++ if (!check_err || feof(err))
+ break;
+
+ fclose(out);
--- /dev/null
+--- gpsmap.cc
++++ gpsmap.cc
+@@ -3825,7 +3825,7 @@
+ else if (tok == "location")
+ network_labels.push_back(NETLABEL_LOCATION);
+ else {
+- fprintf(stderr, "Invalid label '%s'\n", tok.c_str());
++ fprintf(stderr, "Invalid label '%zs'\n", tok.c_str());
+ exit(1);
+ }
+ }
--- /dev/null
+--- gpsmap.cc
++++ gpsmap.cc
+@@ -874,7 +874,7 @@
+
+ // Break up the path to the gpsxml file and form a path based on that
+ unsigned int lastslash = 0;
+- for (unsigned int x = origxmlfile.find('/'); x != string::npos;
++ for (string::size_type x = origxmlfile.find('/'); x != string::npos;
+ lastslash = x, x = origxmlfile.find('/', lastslash+1)) {
+ // We don't actually need to do anything...
+ }
+@@ -882,7 +882,7 @@
+ comp = origxmlfile.substr(0, lastslash);
+
+ lastslash = 0;
+- for (unsigned int x = orignetfile.find('/'); x != string::npos;
++ for (string::size_type x = orignetfile.find('/'); x != string::npos;
+ lastslash = x, x = orignetfile.find('/', lastslash+1)) {
+ // We don't actually need to do anything...
+ }
--- /dev/null
+--- pcapsource.cc
++++ pcapsource.cc
+@@ -2914,6 +2914,7 @@
+ return -1;
+
+ }
++ return -1;
+ }
+ #endif
+
--- /dev/null
+require kismet.inc
+
+# patches *.diff are from openSUSE
+SRC_URI += "file://kismet-2008-05-R1-crash.diff;patch=1;pnum=0 \
+ file://kismet-2008-05-R1-fmt.diff;patch=1;pnum=0 \
+ file://kismet-2008-05-R1-infinite-loop.diff;patch=1;pnum=0 \
+ file://kismet-2008-05-R1-nonvoid.diff;patch=1;pnum=0 \
+ file://fix_strip.patch;patch=1"
+
+PR = "r0"