diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-01 00:19:30 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-01 00:19:30 +0200 |
commit | 0df57225a5c7e475116cad33c9a9a92b907ade56 (patch) | |
tree | dd2f978a0eff295b0a721d646e92e1881b5b0f15 /xml.c | |
parent | 072e7e6b1fdf17d10fdb573adaecaed320718b90 (diff) |
fix crlf newlines, add fp arg to xmlparser_init
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'xml.c')
-rw-r--r-- | xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,9 +6,9 @@ #include "xml.h" void -xmlparser_init(XMLParser *x) { +xmlparser_init(XMLParser *x, FILE *fp) { memset(x, 0, sizeof(XMLParser)); - x->fp = stdin; + x->fp = fp; } __inline__ int /* like getc(), but do some smart buffering */ |