sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 6617d5ae15cf8b26bc718927d1b79876e9bea269
parent 4599b3b679d538c75fb7de8190fe5fc340beacc2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  5 Feb 2022 14:33:34 +0100

sfeed.c: code-style consistency: static functions

Diffstat:
Msfeed.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -213,7 +213,7 @@ static FeedContext ctx; static XMLParser parser; /* XML parser state */ static String attrispermalink, attrrel, attrtype, tmpstr; -int +static int tagcmp(const void *v1, const void *v2) { return strcasecmp(((FeedTag *)v1)->name, ((FeedTag *)v2)->name); @@ -361,7 +361,7 @@ string_print_trimmed(String *s) } /* Print each field with trimmed whitespace, separated by '|'. */ -void +static void string_print_trimmed_multi(String *s) { char *p, *e; @@ -385,7 +385,7 @@ string_print_trimmed_multi(String *s) } /* Print URL, if it's a relative URL then it uses the global `baseurl`. */ -void +static void printuri(char *s) { char link[4096], *p, *e; @@ -411,7 +411,7 @@ printuri(char *s) } /* Print URL, if it's a relative URL then it uses the global `baseurl`. */ -void +static void string_print_uri(String *s) { if (!s->data || !s->len) @@ -421,7 +421,7 @@ string_print_uri(String *s) } /* Print as UNIX timestamp, print nothing if the time is empty or invalid. */ -void +static void string_print_timestamp(String *s) { long long t; @@ -434,7 +434,7 @@ string_print_timestamp(String *s) } /* Convert time fields. Returns a UNIX timestamp. */ -long long +static long long datetounix(long long year, int mon, int day, int hour, int min, int sec) { static const int secs_through_month[] = {