chiark / gitweb /
@@@ tty mess
[mLib] / codec / baseconv.c
index 53fceb2818eb4039f83ec24659782d5c168da793..53949bb8ddb0f2c492828d245a30cb7f1c9e749b 100644 (file)
@@ -28,8 +28,6 @@
 /*----- Header files ------------------------------------------------------*/
 
 #include <ctype.h>
 /*----- Header files ------------------------------------------------------*/
 
 #include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "alloc.h"
 #include <string.h>
 
 #include "alloc.h"
@@ -419,7 +417,7 @@ static int ctxn##_dec(codec *c, const void *p, size_t sz, dstr *d)  \
 static void ctxn##_destroy(codec *c)                                   \
 {                                                                      \
   ctxn##_codec *bc = (ctxn##_codec *)c;                                        \
 static void ctxn##_destroy(codec *c)                                   \
 {                                                                      \
   ctxn##_codec *bc = (ctxn##_codec *)c;                                        \
-  if (bc->ctx.indent) xfree((/*unconst*/ char *)bc->ctx.indent);       \
+  if (bc->ctx.indent) xfree(UNCONST(char, bc->ctx.indent));            \
   DESTROY(bc);                                                         \
 }                                                                      \
                                                                        \
   DESTROY(bc);                                                         \
 }                                                                      \
                                                                        \