cgit

commit fd31aa693077d0eea1b14a7f44ffe29503e2ad59

Author: John Keeping <john@keeping.me.uk>

html: remove redundant htmlfd variable

This is never changed from STDOUT_FILENO, so just use that value
directly.

Signed-off-by: John Keeping <john@keeping.me.uk>

 html.c | 4 +---


diff --git a/html.c b/html.c
index 903d4b78d45584172d9291460109a7658dfa0055..f0ee2d6a2fd198771058ca085a879e7520cd7c50 100644
--- a/html.c
+++ b/html.c
@@ -41,8 +41,6 @@ 	"%f4", "%f5", "%f6", "%f7", "%f8", "%f9", "%fa", "%fb", "%fc", "%fd",
 	"%fe", "%ff"
 };
 
-static int htmlfd = STDOUT_FILENO;
-
 char *fmt(const char *format, ...)
 {
 	static char buf[8][1024];
@@ -77,7 +75,7 @@ }
 
 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");
 }