[glib: 6/12] Fix missing initializer warning in gio/tests/socket-server.c




commit 689b9b545f2a6a6aa88030793cec63f15e76a56a
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Wed Apr 28 23:19:30 2021 +0200

    Fix missing initializer warning in gio/tests/socket-server.c
    
    gio/tests/socket-server.c:43:8: warning: missing field 'short_name' initializer
      {NULL}
           ^

 gio/tests/socket-server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/socket-server.c b/gio/tests/socket-server.c
index 24cf0182e..8b0d2a925 100644
--- a/gio/tests/socket-server.c
+++ b/gio/tests/socket-server.c
@@ -40,7 +40,7 @@ static GOptionEntry cmd_entries[] = {
    "Time out reads after the specified number of seconds", NULL},
   {"tls", 'T', 0, G_OPTION_ARG_STRING, &tls_cert_file,
    "Use TLS (SSL) with indicated server certificate", "CERTFILE"},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 #include "socket-common.c"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]