Signed-off-by: Eduardo Silva <edsiper@gmail.com>
struct mklib_mime MK_EXPORT **mklib_mimetype_list(mklib_ctx);
/* Add a new mimetype */
-int MK_EXPORT mklib_mimetype_add(mklib_ctx, const char *, const char *);
+int MK_EXPORT mklib_mimetype_add(mklib_ctx, char *, const char *);
/* Get the value of a http header.
*
}
/* Add a new mimetype */
-int mklib_mimetype_add(mklib_ctx ctx, const char *name, const char *type)
+int mklib_mimetype_add(mklib_ctx ctx, char *name, const char *type)
{
if (!ctx || !name || !type) return MKLIB_FALSE;
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <errno.h>
+
#include <dlfcn.h>
#include <err.h>