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:
authorTon Roosendaal <ton@blender.org>2009-07-09 19:40:04 +0400
committerTon Roosendaal <ton@blender.org>2009-07-09 19:40:04 +0400
commit5e659c0b0895e07351bd2b2425deea342141e515 (patch)
tree7e6bd849591c0eb75fdefe37c061519806edf309 /source/blender/blenlib/intern/util.c
parent77c61f545fb3248ae4e06afafa816764222405c4 (diff)
2.5
Monthly cleaning round to make it compile warning free. Mostly it was const stuff (strings, Context), but also a couple useful fixes, like wrong use of temp pointers. Only Mathutils callback struct I left alone... design issue.
Diffstat (limited to 'source/blender/blenlib/intern/util.c')
-rw-r--r--source/blender/blenlib/intern/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index b9d4daaf5b2..838648ebfd7 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -738,9 +738,9 @@ void BLI_splitdirstring(char *di, char *fi)
void BLI_getlastdir(const char* dir, char *last, int maxlen)
{
- char *s = dir;
- char *lslash = NULL;
- char *prevslash = NULL;
+ const char *s = dir;
+ const char *lslash = NULL;
+ const char *prevslash = NULL;
while (*s) {
if ((*s == '\\') || (*s == '/')) {
prevslash = lslash;