diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fontfile/bufio.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/fontfile/bufio.c b/src/fontfile/bufio.c index 43c6a13..a5746e3 100644 --- a/src/fontfile/bufio.c +++ b/src/fontfile/bufio.c @@ -147,6 +147,14 @@ BufFileRawFlush (int c, BufFilePtr f) return c; } +static int +BufFileFlush (BufFilePtr f, int doClose) +{ + if (f->bufp != f->buffer) + return (*f->output) (BUFFILEEOF, f); + return 0; +} + BufFilePtr BufFileOpenWrite (int fd) { @@ -189,14 +197,6 @@ BufFileWrite (BufFilePtr f, char *b, int n) } int -BufFileFlush (BufFilePtr f, int doClose) -{ - if (f->bufp != f->buffer) - return (*f->output) (BUFFILEEOF, f); - return 0; -} - -int BufFileClose (BufFilePtr f, int doClose) { int ret; @@ -204,9 +204,3 @@ BufFileClose (BufFilePtr f, int doClose) xfree (f); return ret; } - -void -BufFileFree (BufFilePtr f) -{ - xfree (f); -} |