diff options
author | Chris Burt <desoto@exenex.com> | 2005-07-28 07:20:21 +0400 |
---|---|---|
committer | Chris Burt <desoto@exenex.com> | 2005-07-28 07:20:21 +0400 |
commit | 28bd71602deac42d834b01e771a5ffbc1cdd2fc5 (patch) | |
tree | 85124b7a73f531276a6dcfe9f1d90f0cd8417068 /source/blender/src/filesel.c | |
parent | 539a9ad08fe6735bafe9cd77fe6c316a78b7b762 (diff) |
Killed some warnings. No please.. hold the applause.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index 2cc264edfa1..fc1bdfa14ed 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -439,7 +439,7 @@ void checkdir(char *dir) return; } - while (start = strstr(dir, "\\..\\")) { + while ( (start = strstr(dir, "\\..\\")) ) { eind = start + strlen("\\..\\") - 1; a = start-dir-1; while (a>0) { @@ -449,17 +449,17 @@ void checkdir(char *dir) strcpy(dir+a,eind); } - while (start = strstr(dir,"\\.\\")){ + while ( (start = strstr(dir,"\\.\\")) ){ eind = start + strlen("\\.\\") - 1; strcpy(start,eind); } - while (start = strstr(dir,"\\\\" )){ + while ( (start = strstr(dir,"\\\\" )) ){ eind = start + strlen("\\\\") - 1; strcpy(start,eind); } - if(a = strlen(dir)){ /* remove the '\\' at the end */ + if((a = strlen(dir))){ /* remove the '\\' at the end */ while(a>0 && dir[a-1] == '\\'){ a--; dir[a] = 0; @@ -720,21 +720,21 @@ void parent(SpaceFile *sfile) dir= sfile->dir; #ifdef WIN32 - if(a = strlen(dir)) { /* remove all '/' at the end */ + if( (a = strlen(dir)) ) { /* remove all '/' at the end */ while(dir[a-1] == '\\') { a--; dir[a] = 0; if (a<=0) break; } } - if(a = strlen(dir)) { /* then remove all until '/' */ + if( (a = strlen(dir)) ) { /* then remove all until '/' */ while(dir[a-1] != '\\') { a--; dir[a] = 0; if (a<=0) break; } } - if (a = strlen(dir)) { + if( (a = strlen(dir)) ) { if (dir[a-1] != '\\') strcat(dir,"\\"); } else if(sfile->type!=FILE_MAIN) strcpy(dir,"\\"); |