Blob Blame History Raw
2006-04-29  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>

	* gpsmap.cc: this patch is originated by Hans de Goede posted at

	  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=165314#c25


--- kismet-2006-04-R1/gpsmap.cc.64bit	2006-04-26 06:56:39.000000000 +0200
+++ kismet-2006-04-R1/gpsmap.cc	2006-04-26 06:57:03.000000000 +0200
@@ -864,8 +864,8 @@
                     orignetfile = "./" + orignetfile;
 
                 // 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;
+                string::size_type lastslash = 0;
+                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...
                 }
@@ -873,7 +873,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...
                 }