Windows: Fix some warnings.
authorDiego Martinez <kaeza@users.sf.net>
Wed, 8 Jul 2015 19:18:11 +0000 (16:18 -0300)
committerest31 <MTest31@outlook.com>
Wed, 8 Jul 2015 23:52:28 +0000 (01:52 +0200)
src/filesys.cpp

index 9aeecf427e54b0dd7f0aaa66707bef5ee9b9c73e..4cefdb807e2580c18a0d559ba0b405414050f34e 100644 (file)
@@ -142,7 +142,7 @@ bool RecursiveDelete(const std::string &path)
                infostream<<"RecursiveDelete: Deleting content of directory "
                                <<path<<std::endl;
                std::vector<DirListNode> content = GetDirListing(path);
-               for(int i=0; i<content.size(); i++){
+               for(size_t i=0; i<content.size(); i++){
                        const DirListNode &n = content[i];
                        std::string fullpath = path + DIR_DELIM + n.name;
                        bool did = RecursiveDelete(fullpath);
@@ -183,7 +183,7 @@ bool DeleteSingleFileOrEmptyDirectory(const std::string &path)
 
 std::string TempPath()
 {
-       DWORD bufsize = GetTempPath(0, "");
+       DWORD bufsize = GetTempPath(0, NULL);
        if(bufsize == 0){
                errorstream<<"GetTempPath failed, error = "<<GetLastError()<<std::endl;
                return "";