summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-02-05 14:33:34 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-02-05 14:33:34 +0100
commit6617d5ae15cf8b26bc718927d1b79876e9bea269 (patch)
tree584c740fbd38d8973e423b84f557b881fc68035c
parent4599b3b679d538c75fb7de8190fe5fc340beacc2 (diff)
sfeed.c: code-style consistency: static functions
-rw-r--r--sfeed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sfeed.c b/sfeed.c
index d9d91fd..4dd89c1 100644
--- 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[] = {