Use standard C initializer list syntax

Fix clang warning

  warning: use of GNU old-style field designator extension [-Wgnu-designator]
This commit is contained in:
Robert Schmidt
2024-04-18 14:16:09 +02:00
parent 24baf08c87
commit ed89498c4f
22 changed files with 26 additions and 28 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ int main(int n, char **v)
if (signal(SIGINT, force_stop) == SIG_ERR) abort();
if (signal(SIGTSTP, force_stop) == SIG_ERR) abort();
OBUF ebuf = { osize: 0, omaxsize: 0, obuf: NULL };
OBUF ebuf = {.osize = 0, .omaxsize = 0, .obuf = NULL};
/* read messages */
while (run) {