summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-04-12 22:55:54 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-04-12 22:55:54 +0200
commit728270f69c34a84cb10aa891178c90c8fe36320d (patch)
treefe776d00769a34fd94022679b5e0255de80bea76
parentced0dd7f8a01dedad3ba16c4cf209aea673c3e82 (diff)
fix some typos
-rw-r--r--README2
-rw-r--r--sfeed.c10
-rw-r--r--sfeed_gopher.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index a0a4815..6892e89 100644
--- 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
index e96ffa3..e2f44b8 100644
--- 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
index 290d2d2..f62c6ed 100644
--- 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;