sfeed

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

commit 728270f69c34a84cb10aa891178c90c8fe36320d
parent ced0dd7f8a01dedad3ba16c4cf209aea673c3e82
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 12 Apr 2023 22:55:54 +0200

fix some typos

Diffstat:
MREADME | 2+-
Msfeed.c | 10+++++-----
Msfeed_gopher.c | 2+-
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README b/README @@ -38,7 +38,7 @@ Initial setup: cp sfeedrc.example "$HOME/.sfeed/sfeedrc" Edit the sfeedrc(5) configuration file and change any RSS/Atom feeds. This file -is included and evaluated as a shellscript for sfeed_update, so it's functions +is included and evaluated as a shellscript for sfeed_update, so its functions and behaviour can be overridden: $EDITOR "$HOME/.sfeed/sfeedrc" diff --git a/sfeed.c b/sfeed.c @@ -383,7 +383,7 @@ string_print_trimmed_multi(String *s) } } -/* Print URL, if it's a relative URL then it uses the global `baseurl`. */ +/* Print URL, if it is a relative URL then it uses the global `baseurl`. */ static void printuri(char *s) { @@ -409,7 +409,7 @@ printuri(char *s) *e = c; /* restore NUL byte to original character */ } -/* Print URL, if it's a relative URL then it uses the global `baseurl`. */ +/* Print URL, if it is a relative URL then it uses the global `baseurl`. */ static void string_print_uri(String *s) { @@ -432,7 +432,7 @@ string_print_timestamp(String *s) printf("%lld", t); } -/* Convert time fields. Returns a signed (atleast) 64-bit UNIX timestamp. +/* Convert time fields. Returns a signed (at least) 64-bit UNIX timestamp. Parameters should be passed as they are in a struct tm: that is: year = year - 1900, month = month - 1. */ static long long @@ -907,7 +907,7 @@ xmltagstartparsed(XMLParser *p, const char *t, size_t tl, int isshort) return; } - /* set tag type based on it's attribute value */ + /* set tag type based on its attribute value */ if (ctx.tag.id == RSSTagGuid) { /* if empty the default is "true" */ if (!attrispermalink.len || @@ -1018,7 +1018,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort) } /* temporary string: for fields that cannot be processed - directly and need more context, for example by it's tag + directly and need more context, for example by its tag attributes, like the Atom link rel="alternate|enclosure". */ if (tmpstr.len && ctx.field) { if (ISFEEDFIELDMULTI(fieldmap[ctx.tag.id])) { diff --git a/sfeed_gopher.c b/sfeed_gopher.c @@ -64,7 +64,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f) if (fields[FieldLink][0]) { itemtype = 'h'; - /* if it's a gopher URL then change it into a DirEntity */ + /* if it is a gopher URL then change it into a DirEntity */ if (!strncmp(fields[FieldLink], "gopher://", 9) && uri_parse(fields[FieldLink], &u) != -1) { itemhost = u.host;