diff options
author | Christian Hesse <mail@eworm.de> | 2014-02-27 14:30:03 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-02-27 14:30:03 +0100 |
commit | b3b27b45e2c89703d8be2a13e3fc099a05189176 (patch) | |
tree | 04f779e0a041b29d2d741f67914dbfe56176e3af | |
parent | 8f344a78763429fdc5e1c3237ae2a809fb855ed0 (diff) | |
download | cqrlogo-b3b27b45e2c89703d8be2a13e3fc099a05189176.tar.gz cqrlogo-b3b27b45e2c89703d8be2a13e3fc099a05189176.tar.zst |
make the MIME header a define
-rw-r--r-- | cqrlogo.c | 2 | ||||
-rw-r--r-- | lib/libcqrlogo.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |