From 894b278c9cc853807c85bf58b9774ea8147ac9f6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 30 Jun 2023 03:35:31 +0200 Subject: use designated struct initializers more --- src/client_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client_main.c') diff --git a/src/client_main.c b/src/client_main.c index ca79800..0dbdcc6 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -15,7 +15,10 @@ static struct settings default_settings(void) { - struct settings settings = {default_host, default_port}; + struct settings settings = { + .host = default_host, + .port = default_port, + }; return settings; } -- cgit v1.2.3