summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cqrlogo.c2
-rw-r--r--lib/libcqrlogo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index f46867e..1bafd78 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {
}
/* print HTTP header */
- fputs(cqr_mimeheader, stdout);
+ fputs(CQR_MIMEHEADER, stdout);
/* write PNG data to stdout */
if (fwrite(png->buffer, png->size, 1, stdout) != 1) {
diff --git a/lib/libcqrlogo.h b/lib/libcqrlogo.h
index c5322a2..59ee885 100644
--- a/lib/libcqrlogo.h
+++ b/lib/libcqrlogo.h
@@ -40,7 +40,7 @@ struct cqr_conf {
bool overwrite;
};
-const char * cqr_mimeheader = "Content-Type: image/png\n\n";
+#define CQR_MIMEHEADER "Content-Type: image/png\n\n"
#define CQR_META_COMMENT 0x1
#define CQR_META_REFERER 0x2