]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/RainbowCrack.cpp
0.6.5 release synced from rcracki.sourceforge.net
[freerainbowtables] / Client Applications / rcracki_mt / RainbowCrack.cpp
index 9814834a560c49476e052247f64f48b908590f89..2959787041a0f828af291ccaf256b48f7dc850f8 100644 (file)
@@ -16,7 +16,7 @@
  * 2009-01-04 - <james.dickson@comhem.se> - Slightly modified (or "fulhack" as \r
  * we say in sweden)  to support cain .lst files.\r
  *\r
- * This file is part of racrcki_mt.\r
+ * This file is part of rcracki_mt.\r
  *\r
  * rcracki_mt is free software: you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
@@ -32,7 +32,7 @@
  * along with rcracki_mt.  If not, see <http://www.gnu.org/licenses/>.\r
  */\r
 \r
-#ifdef _WIN32\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
        #pragma warning(disable : 4786 4267 4018)\r
 #endif\r
 \r
@@ -49,7 +49,7 @@
        #include <dirent.h>\r
 #endif\r
 \r
-#ifdef _WIN32\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
        #pragma comment(lib, "libeay32.lib")\r
 #endif\r
 \r
@@ -61,15 +61,15 @@ void GetTableList(string sWildCharPathName, vector<string>& vPathName)
        //vPathName.clear();\r
 \r
        string sPath;\r
-       int n = sWildCharPathName.find_last_of('\\');\r
+       string::size_type n = sWildCharPathName.find_last_of('\\');\r
 \r
-       if (n == (sWildCharPathName.size() - 1))\r
+       if ( n == (sWildCharPathName.size() - 1) )\r
        {\r
                sWildCharPathName = sWildCharPathName.substr(0, n);\r
                n = sWildCharPathName.find_last_of('\\');\r
        }\r
 \r
-       if (n != -1)\r
+       if (n != string::npos)\r
                sPath = sWildCharPathName.substr(0, n + 1);\r
 \r
        _finddata_t fd;\r