diff options
Diffstat (limited to '')
-rw-r--r-- | atom.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, "</entry>\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, "</feed>\n"); return (n < 0 ? n : 0); } |