summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-05-15 18:48:56 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-05-15 18:48:56 +0200
commit5027669efb6a969afa2c8adcf7c2322dcf75de1f (patch)
treec74c9c2f4c04d22da96fc24814776f161f8633b8
parent3f7b8da537dca5b97657519eb8544f02f6b32d55 (diff)
fix typo
-rw-r--r--sfeed.14
-rw-r--r--sfeed.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sfeed.1 b/sfeed.1
index 79d43be..5c348a8 100644
--- a/sfeed.1
+++ b/sfeed.1
@@ -111,5 +111,5 @@ The README file has more examples.
.Sh AUTHORS
.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org
.Sh CAVEATS
-If a timezone for the timestamp field is not in the RFC822 or RFC3339 format it
-is not supported and the timezone is interpreted as UTC+0.
+If a timezone for the timestamp field is not in the RFC 822 or RFC 3339 format
+it is not supported and the timezone is interpreted as UTC+0.
diff --git a/sfeed.c b/sfeed.c
index e7ffa05..888a575 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -504,10 +504,10 @@ datetounix(long long year, int mon, int day, int hour, int min, int sec)
}
/* Get timezone from string, return time offset in seconds from UTC.
- * NOTE: only parses timezones in RFC-822, many other timezone names are
+ * NOTE: only parses timezones in RFC 822, many other timezone names are
* ambiguous anyway.
- * ANSI and military zones are defined wrong in RFC822 and are unsupported,
- * see note on RFC2822 4.3 page 32. */
+ * ANSI and military zones are defined wrong in RFC 822 and are unsupported,
+ * see note on RFC 2822 4.3 page 32. */
static long
gettzoffset(const char *s)
{
@@ -627,7 +627,7 @@ parsetime(const char *s, long long *tp)
;
for (v = 0, i = 0; i < 4 && ISDIGIT((unsigned char)*s); s++, i++)
v = (v * 10) + (*s - '0');
- /* obsolete short year: RFC2822 4.3 */
+ /* obsolete short year: RFC 2822 4.3 */
if (i == 2 || i == 3)
v += (i == 2 && v >= 0 && v <= 49) ? 2000 : 1900;
va[0] = v; /* year */