From b6731ae35b125963a37dcaacaf76169992ad1f67 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 20 Jul 2022 20:37:14 +0200 Subject: slightly improve some comments --- sfeed.c | 4 ++-- sfeed_curses.c | 2 +- sfeed_gopher.c | 2 +- sfeed_mbox.c | 4 ++-- xml.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sfeed.c b/sfeed.c index 7b0ef6c..8a2843e 100644 --- a/sfeed.c +++ b/sfeed.c @@ -530,7 +530,7 @@ gettzoffset(const char *s) ; if (i != 3) return 0; - /* compare tz and adjust offset relative to UTC */ + /* compare timezone and adjust offset relative to UTC */ for (i = 0; i < sizeof(tzones) / sizeof(*tzones); i++) { if (!memcmp(s, tzones[i].name, 3)) return tzones[i].offhour; @@ -978,7 +978,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort) } else if (ctx.tag.id && istag(ctx.tag.name, ctx.tag.len, t, tl)) { /* matched tag end: close it */ /* copy also to the link field if the attribute isPermaLink="true" - and it is not set by a tag with higher prio. */ + and it is not set by a tag with higher priority. */ if (ctx.tag.id == RSSTagGuidPermalinkTrue && ctx.field && ctx.tag.id > ctx.fields[FeedFieldLink].tagid) { string_clear(&ctx.fields[FeedFieldLink].str); diff --git a/sfeed_curses.c b/sfeed_curses.c index 9f57ef9..b1a56d6 100644 --- a/sfeed_curses.c +++ b/sfeed_curses.c @@ -130,7 +130,7 @@ struct item { }; struct urls { - char **items; /* array of urls */ + char **items; /* array of URLs */ size_t len; /* amount of items */ size_t cap; /* available capacity */ }; diff --git a/sfeed_gopher.c b/sfeed_gopher.c index 7da41f6..b4ce7d9 100644 --- a/sfeed_gopher.c +++ b/sfeed_gopher.c @@ -65,7 +65,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 direntry */ + /* if it's a gopher URL then change it into a DirEntity */ if (!strncmp(fields[FieldLink], "gopher://", 9) && uri_parse(fields[FieldLink], &u) != -1) { itemhost = u.host; diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 30ac875..0cfd836 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -22,8 +22,8 @@ djb2(unsigned char *s, unsigned long long hash) } /* Unescape / decode fields printed by string_print_encoded() - * "\\" to "\", "\t", to TAB, "\n" to newline. Unrecognised escape sequences - * are ignored: "\z" etc. Mangle "From " in mboxrd style (always prefix >). */ + * "\\" to "\", "\t", to TAB, "\n" to newline. Other escape sequences are + * ignored: "\z" etc. Mangle "From " in mboxrd style (always prefix >). */ static void printcontent(const char *s, FILE *fp) { diff --git a/xml.h b/xml.h index ad53396..cef4a05 100644 --- a/xml.h +++ b/xml.h @@ -30,7 +30,7 @@ typedef struct xmlparser { /* current tag */ char tag[1024]; size_t taglen; - /* current tag is in short form ? */ + /* current tag is in shortform ? */ int isshorttag; /* current attribute name */ char name[1024]; -- cgit v1.2.3