From d808c1e21ad3f9c78db9de3a97dd48d480bd22df Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Fri, 7 Jun 2019 09:52:13 +0100 Subject: [PATCH] wmail: use designated initializers to define config. --- wmail/src/config.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/wmail/src/config.c b/wmail/src/config.c index c55e3e5..4f380f2 100644 --- a/wmail/src/config.c +++ b/wmail/src/config.c @@ -96,26 +96,9 @@ static const char *SkipWhiteSpaces( const char *str ); // current configuration config_t config = { - NULL, - NULL, // use $MAIL environment-variable - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - WMAIL_CHECK_INTERVAL, - WMAIL_FPS, - false, - false, - TICKER_ADDRESS, - NULL, - NULL, - false, - NULL, - 0, - 0 + .checkInterval = WMAIL_CHECK_INTERVAL, + .fps = WMAIL_FPS, + .tickerMode = TICKER_ADDRESS }; // enumeration names for ticker mode