summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-03-03 13:18:56 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-03-03 13:18:56 +0100
commita5600ecf20ec102553639567bc15d42857f97c18 (patch)
tree562d8630b56ad2ea0b3a6c32edfbf1d920561467
parente72b13661b058248fc615c56b03f4a9842f801e3 (diff)
sfeed: style, break in switch instead of return
this style change is useful for my local coverage profile.
-rw-r--r--sfeed.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sfeed.c b/sfeed.c
index 4f96451..16a94a9 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -196,7 +196,7 @@ gettag(enum FeedType feedtype, const char *name, size_t namelen)
for (i = 0; i < sizeof(rsstags) / sizeof(rsstags[0]); i++)
if (istag(rsstags[i].name, rsstags[i].len, name, namelen))
return rsstags[i].id;
- return TagUnknown;
+ break;
case FeedTypeAtom:
/* optimization: these are always non-matching */
if (namelen < 2 || namelen > 17)
@@ -205,10 +205,12 @@ gettag(enum FeedType feedtype, const char *name, size_t namelen)
for (i = 0; i < sizeof(atomtags) / sizeof(atomtags[0]); i++)
if (istag(atomtags[i].name, atomtags[i].len, name, namelen))
return atomtags[i].id;
- return TagUnknown;
+ break;
default:
- return TagUnknown;
+ break;
}
+
+ return TagUnknown;
}
static char *