]> mj.ucw.cz Git - libucw.git/blobdiff - images/error.h
Opt: Constify
[libucw.git] / images / error.h
index 0057ff8ac5d9d419330edee10ee1358bb1e2bc11..77760b2a2197748e7bd645c075a5bd95e2cdcd1a 100644 (file)
@@ -5,7 +5,7 @@
 #define image_trace ucw_image_trace
 #endif
 
 #define image_trace ucw_image_trace
 #endif
 
-extern uns image_trace; /* ImageLib.Trace */ 
+extern uint image_trace; /* ImageLib.Trace */
 
 /* Error codes */
 
 
 /* Error codes */
 
@@ -33,7 +33,7 @@ enum image_msg_code {
 #define IMAGE_ERROR(ctx, type, msg...) image_context_msg((ctx), IMAGE_MSG_ERROR | (type), msg)
 
 #define IMAGE_TRACE(ctx, level, msg...) do { \
 #define IMAGE_ERROR(ctx, type, msg...) image_context_msg((ctx), IMAGE_MSG_ERROR | (type), msg)
 
 #define IMAGE_TRACE(ctx, level, msg...) do { \
-       struct image_context *_ctx = (ctx); uns _level = (level); \
+       struct image_context *_ctx = (ctx); uint _level = (level); \
        if (_level < _ctx->tracing_level) image_context_msg(_ctx, IMAGE_MSG_TRACE | _level, msg); } while (0)
 
 #endif
        if (_level < _ctx->tracing_level) image_context_msg(_ctx, IMAGE_MSG_TRACE | _level, msg); } while (0)
 
 #endif