summaryrefslogtreecommitdiff
path: root/sfeed_web.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_web.c')
-rw-r--r--sfeed_web.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sfeed_web.c b/sfeed_web.c
index 2d77d4c..e25e91c 100644
--- a/sfeed_web.c
+++ b/sfeed_web.c
@@ -1,4 +1,3 @@
-#include <ctype.h>
#include <stdio.h>
#include <strings.h>
@@ -16,7 +15,7 @@ static void
printvalue(const char *s)
{
for (; *s; s++)
- if (!iscntrl((unsigned char)*s))
+ if (!ISCNTRL((unsigned char)*s))
putchar(*s);
}
@@ -104,7 +103,7 @@ static void
xmlattrentity(XMLParser *p, const char *t, size_t tl, const char *a, size_t al,
const char *v, size_t vl)
{
- char buf[16];
+ char buf[8];
int len;
if (!ishrefattr && !istypeattr)
@@ -133,8 +132,11 @@ main(int argc, char *argv[])
parser.xmltagstart = xmltagstart;
parser.xmltagstartparsed = xmltagstartparsed;
- /* NOTE: getnext is defined in xml.h for inline optimization */
+ /* NOTE: GETNEXT is defined in xml.h for inline optimization */
xml_parse(&parser);
+ checkfileerror(stdin, "<stdin>", 'r');
+ checkfileerror(stdout, "<stdout>", 'w');
+
return 0;
}