From b3b27b45e2c89703d8be2a13e3fc099a05189176 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 27 Feb 2014 14:30:03 +0100 Subject: make the MIME header a define --- cqrlogo.c | 2 +- lib/libcqrlogo.h | 2 +- 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 -- cgit v1.2.3-70-g09d2