Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-17 17:32:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 17:32:54 +0300
commit5513da65b24a3ce77b1709acea841475115f3a7a (patch)
tree20bd4d26f20ac63ebf776cea3a0220c11258f06d /source/blender/blenlib/intern/fileops.c
parentf19ecdeec64506415b9a9f75293df866691bbd28 (diff)
Cleanup: trailing space for BLI
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r--source/blender/blenlib/intern/fileops.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index ad53457f863..0b57a727452 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -64,7 +64,7 @@
#include "BLI_sys_types.h" // for intptr_t support
#if 0 /* UNUSED */
-/* gzip the file in from and write it to "to".
+/* gzip the file in from and write it to "to".
* return -1 if zlib fails, -2 if the originating file does not exist
* note: will remove the "from" file
*/
@@ -95,14 +95,14 @@ int BLI_file_gzip(const char *from, const char *to)
}
else if (readsize == 0)
break; /* done reading */
-
+
if (gzwrite(gzfile, buffer, readsize) <= 0) {
rval = -1; /* error happened in writing */
fprintf(stderr, "Error writing gz file %s: %s.\n", to, gzerror(gzfile, &err));
break;
}
}
-
+
gzclose(gzfile);
close(file);
@@ -141,7 +141,7 @@ char *BLI_file_ungzip_to_mem(const char *from_file, int *r_size)
break;
}
}
-
+
gzclose(gzfile);
if (size == 0) {
@@ -389,7 +389,7 @@ int BLI_move(const char *file, const char *to)
strcat(str, BLI_last_slash(file) + 1);
}
}
-
+
UTF16_ENCODE(file);
UTF16_ENCODE(str);
err = !MoveFileW(file_16, str_16);
@@ -500,7 +500,7 @@ int BLI_rename(const char *from, const char *to)
/* make sure the filenames are different (case insensitive) before removing */
if (BLI_exists(to) && BLI_strcasecmp(from, to))
if (BLI_delete(to, false, false)) return 1;
-
+
return urename(from, to);
}
@@ -1033,7 +1033,7 @@ bool BLI_dir_create_recursive(const char *dirname)
#endif
BLI_strncpy(tmp, dirname, size);
-
+
/* Avoids one useless recursion in case of '/foo/bar/' path... */
BLI_del_slash(tmp);
@@ -1064,7 +1064,7 @@ int BLI_rename(const char *from, const char *to)
if (!BLI_exists(from)) {
return 1;
}
-
+
if (BLI_exists(to))
if (BLI_delete(to, false, false)) return 1;