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
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2004-03-06 20:16:35 +0300
committerKent Mein <mein@cs.umn.edu>2004-03-06 20:16:35 +0300
commitb5ae8a30a22738ac9bbeae1bdbff33a5c24ed8ac (patch)
treef3c7401a8c9305610e11704cf99b02e329067e6d /source
parent6f195f084cf0af012961aad3f2f940af0f703337 (diff)
Reverted the casts so it would compile on irix.
Complaining because the cast confuses the compiler and it complains lvalue of the expression isn't modifiable. Probably a way to fix this but I'm lazy so I'm just reverting it to the warning that works. :) Also noticed a debug statment that was after a return value so I remove it. (It was also trying to print memory that had been set to NULL above so pretty much worthless) Kent
Diffstat (limited to 'source')
-rw-r--r--source/blender/readstreamglue/intern/BLO_readStreamGlue.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/readstreamglue/intern/BLO_readStreamGlue.c b/source/blender/readstreamglue/intern/BLO_readStreamGlue.c
index 934f79c7652..9c9ee5cb204 100644
--- a/source/blender/readstreamglue/intern/BLO_readStreamGlue.c
+++ b/source/blender/readstreamglue/intern/BLO_readStreamGlue.c
@@ -161,15 +161,15 @@ readStreamGlue(
break;
case READBLENFILE:
case WRITEBLENFILE:
- (struct readStreamGlueLoopBackStruct *)(*control)->begin = readStreamGlueLoopBack_begin;
- (struct readStreamGlueLoopBackStruct *)(*control)->process = readStreamGlueLoopBack_process;
- (struct readStreamGlueLoopBackStruct *)(*control)->end = readStreamGlueLoopBack_end;
+ (*control)->begin = readStreamGlueLoopBack_begin;
+ (*control)->process = readStreamGlueLoopBack_process;
+ (*control)->end = readStreamGlueLoopBack_end;
break;
case INFLATE:
case DEFLATE:
- (struct readStreamGlueLoopBackStruct *)(*control)->begin = BLO_inflate_begin;
- (struct readStreamGlueLoopBackStruct *)(*control)->process = BLO_inflate_process;
- (struct readStreamGlueLoopBackStruct *)(*control)->end = BLO_inflate_end;
+ (*control)->begin = BLO_inflate_begin;
+ (*control)->process = BLO_inflate_process;
+ (*control)->end = BLO_inflate_end;
break;
default:
err = BRS_SETFUNCTION(BRS_READSTREAMGLUE) |
@@ -177,11 +177,6 @@ readStreamGlue(
(*control) = NULL;
free(*control);
return err;
-#ifndef NDEBUG
- fprintf(GEN_errorstream,
- "unknown dataProcessorType %d\n",
- (*control)->dataProcessorType);
-#endif
break;
}
/* Call the dataprocessors begin() and