diff options
author | June McEnroe <june@causal.agency> | 2020-04-10 10:57:10 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-10 10:57:10 -0400 |
commit | 6f1fc87b39335b4f60d2368413c6da7e732a0d97 (patch) | |
tree | b9c836c20c8901f83e3353cae267114c019fa7a4 /archive.h | |
parent | Rearrange HTML templating code (diff) | |
download | bubger-6f1fc87b39335b4f60d2368413c6da7e732a0d97.tar.gz bubger-6f1fc87b39335b4f60d2368413c6da7e732a0d97.zip |
Rearrange Atom templating code
Diffstat (limited to '')
-rw-r--r-- | archive.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archive.h b/archive.h index 540b898..cca5775 100644 --- a/archive.h +++ b/archive.h @@ -26,6 +26,10 @@ struct Address { const char *host; }; +static inline const char *addressName(struct Address addr) { + return (addr.name ? addr.name : addr.mailbox); +} + struct AddressList { size_t len; struct Address *addrs; |