diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-25 20:36:46 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-25 20:36:46 +0000 |
commit | 12b89d8501fe2a86297ee1df993368eda4a7fb81 (patch) | |
tree | b84a4ffbcce65cac30c01524ef5c051668c172cf /src/util/File.c | |
parent | e1b1ed9aaab66518a33dd5e344f20bfe4c38c16e (diff) |
Fixing some compiler warnings.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2250 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/File.c')
-rw-r--r-- | src/util/File.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/File.c b/src/util/File.c index 47efd98a..5d8c5831 100644 --- a/src/util/File.c +++ b/src/util/File.c @@ -12,6 +12,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <sys/types.h> #include <sys/stat.h> @@ -153,7 +154,7 @@ int CCTK_CreateDirectory(int mode, const char *pathname) if(! retval) { /* Deal with last component of path */ - if(path - pathname < strlen(pathname)) + if((size_t)(path - pathname) < strlen(pathname)) { if(stat(pathname, &statbuf)) { |