physfs.c
changeset 93 74d1df359be3
parent 74 a4a5066fb640
child 100 d2f04ab4b412
--- a/physfs.c	Sun Sep 02 01:17:35 2001 +0000
+++ b/physfs.c	Sun Sep 02 04:55:25 2001 +0000
@@ -11,8 +11,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/stat.h>
-#include <sys/types.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <assert.h>
@@ -700,13 +698,13 @@
     {
         char **rc = PHYSFS_enumerateFiles("");
         char **i;
-        int extlen = strlen(archiveExt);
+        size_t extlen = strlen(archiveExt);
         char *ext;
 
         for (i = rc; *i != NULL; i++)
         {
-            int l = strlen(*i);
-            if ((l > extlen) && ((*i)[l - extlen - 1] == '.'));
+            size_t l = strlen(*i);
+            if ((l > extlen) && ((*i)[l - extlen - 1] == '.'))
             {
                 ext = (*i) + (l - extlen);
                 if (__PHYSFS_platformStricmp(ext, archiveExt) == 0)
@@ -742,7 +740,7 @@
                                               const char *append)
 {
     const char *dirsep = PHYSFS_getDirSeparator();
-    int sepsize = strlen(dirsep);
+    size_t sepsize = strlen(dirsep);
     char *str;
     char *i1;
     char *i2;
@@ -966,7 +964,7 @@
         finalList = next;
     } /* for */
 
-    if (retval != NULL);
+    if (retval != NULL)
         retval[i] = NULL;
 
     return(retval);