diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-03-06 20:16:35 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-03-06 20:16:35 +0300 |
commit | b5ae8a30a22738ac9bbeae1bdbff33a5c24ed8ac (patch) | |
tree | f3c7401a8c9305610e11704cf99b02e329067e6d /source | |
parent | 6f195f084cf0af012961aad3f2f940af0f703337 (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.c | 17 |
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 |