summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-27 14:30:03 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-02-27 14:30:03 +0100
commitb3b27b45e2c89703d8be2a13e3fc099a05189176 (patch)
tree04f779e0a041b29d2d741f67914dbfe56176e3af
parent8f344a78763429fdc5e1c3237ae2a809fb855ed0 (diff)
downloadcqrlogo-b3b27b45e2c89703d8be2a13e3fc099a05189176.tar.gz
cqrlogo-b3b27b45e2c89703d8be2a13e3fc099a05189176.tar.zst
make the MIME header a define
-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