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>
John Keeping john@keeping.me.uk
Sun, 12 Jan 2014 17:13:48 +0000
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
html.c
→
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"); }