summaryrefslogtreecommitdiff
path: root/sfeed.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-02-27 19:18:40 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-02-27 19:18:40 +0100
commit13d7b7a6df950c32162dcb157123bc47e1904b07 (patch)
tree4a0efdff24536e154081f63226a1513bfc0f6ecb /sfeed.c
parent8f54740326838579ecfab9ad5279c3f20740dcd7 (diff)
atomlinktype make enum TagId instead of int
Diffstat (limited to 'sfeed.c')
-rw-r--r--sfeed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed.c b/sfeed.c
index 343e65e..4f96451 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -178,7 +178,7 @@ static FeedContext ctx;
static XMLParser parser; /* XML parser state */
static String atomlink;
-static int atomlinktype;
+static enum TagId atomlinktype;
static int rssidpermalink;
/* Unique tagid for parsed tag name. */
@@ -640,7 +640,7 @@ xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl,
if (!vl || isattr(v, vl, STRP("alternate")))
atomlinktype = AtomTagLinkAlternate;
else
- atomlinktype = 0;
+ atomlinktype = TagUnknown;
} else if (ctx.tagid == AtomTagLink &&
isattr(n, nl, STRP("href"))) {
string_append(&atomlink, v, vl);