summaryrefslogtreecommitdiff
path: root/xml.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-04-01 00:19:30 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-04-01 00:19:30 +0200
commit0df57225a5c7e475116cad33c9a9a92b907ade56 (patch)
treedd2f978a0eff295b0a721d646e92e1881b5b0f15 /xml.c
parent072e7e6b1fdf17d10fdb573adaecaed320718b90 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xml.c b/xml.c
index c9e982e..fd19f1f 100644
--- a/xml.c
+++ b/xml.c
@@ -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 */