#include <stdio.h>
#include "cgit.h"
+#include "ui-plain.h"
#include "html.h"
#include "ui-shared.h"
ctx.page.etag = sha1_to_hex(sha1);
cgit_print_http_headers(&ctx);
html_raw(buf, size);
+ /* If we allocated this, then casting away const is safe. */
if (freemime)
- free(ctx.page.mimetype);
+ free((char*) ctx.page.mimetype);
return 1;
}