From 79efea7ad5ffa571d27321243e25c372ab4303b2 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 13 Apr 2020 11:47:36 -0400 Subject: Rename atom rendering functions Again, probably. --- atom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'atom.c') diff --git a/atom.c b/atom.c index bf4b456..83a4457 100644 --- a/atom.c +++ b/atom.c @@ -30,7 +30,7 @@ static char *atomID(const char *messageID) { return templateURL("mailto:?Message-Id=[messageID]", vars); } -int atomEntryHead(FILE *file, const struct Envelope *envelope) { +int atomEntryOpen(FILE *file, const struct Envelope *envelope) { char *id = atomID(envelope->messageID); char date[sizeof("0000-00-00T00:00:00Z")]; strftime(date, sizeof(date), "%FT%TZ", gmtime(&envelope->utc)); @@ -58,12 +58,12 @@ int atomEntryHead(FILE *file, const struct Envelope *envelope) { return error; } -int atomEntryTail(FILE *file) { +int atomEntryClose(FILE *file) { int n = fprintf(file, "\n"); return (n < 0 ? n : 0); } -int atomFeedHead(FILE *file, const struct Envelope *envelope) { +int atomFeedOpen(FILE *file, const struct Envelope *envelope) { char *id = atomID(envelope->messageID); char date[sizeof("0000-00-00T00:00:00Z")]; strftime(date, sizeof(date), "%FT%TZ", gmtime(&(time_t) { time(NULL) })); @@ -93,7 +93,7 @@ int atomFeedHead(FILE *file, const struct Envelope *envelope) { return error; } -int atomFeedTail(FILE *file) { +int atomFeedClose(FILE *file) { int n = fprintf(file, "\n"); return (n < 0 ? n : 0); } -- cgit 1.4.1