]> gitweb.ps.run Git - ps-cgit/blobdiff - html.c
auth: add basic authentication filter framework
[ps-cgit] / html.c
diff --git a/html.c b/html.c
index 903d4b78d45584172d9291460109a7658dfa0055..f0ee2d6a2fd198771058ca085a879e7520cd7c50 100644 (file)
--- a/html.c
+++ b/html.c
@@ -41,8 +41,6 @@ static const char* url_escape_table[256] = {
        "%fe", "%ff"
 };
 
-static int htmlfd = STDOUT_FILENO;
-
 char *fmt(const char *format, ...)
 {
        static char buf[8][1024];
@@ -77,7 +75,7 @@ char *fmtalloc(const char *format, ...)
 
 void html_raw(const char *data, size_t size)
 {
-       if (write(htmlfd, data, size) != size)
+       if (write(STDOUT_FILENO, data, size) != size)
                die_errno("write error on html output");
 }