mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 00:18:41 +00:00
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>
This commit is contained in:
parent
1b1974c45e
commit
fd31aa6930
4
html.c
4
html.c
@ -41,8 +41,6 @@ static const char* url_escape_table[256] = {
|
|||||||
"%fe", "%ff"
|
"%fe", "%ff"
|
||||||
};
|
};
|
||||||
|
|
||||||
static int htmlfd = STDOUT_FILENO;
|
|
||||||
|
|
||||||
char *fmt(const char *format, ...)
|
char *fmt(const char *format, ...)
|
||||||
{
|
{
|
||||||
static char buf[8][1024];
|
static char buf[8][1024];
|
||||||
@ -77,7 +75,7 @@ char *fmtalloc(const char *format, ...)
|
|||||||
|
|
||||||
void html_raw(const char *data, size_t size)
|
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");
|
die_errno("write error on html output");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user