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




commit 4301110174007c6a02943bf85a24df4c54dc3789
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Wed Apr 28 23:21:03 2021 +0200

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

 gio/tests/socket-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/socket-client.c b/gio/tests/socket-client.c
index 8df1c28f3..6c25e08c9 100644
--- a/gio/tests/socket-client.c
+++ b/gio/tests/socket-client.c
@@ -34,7 +34,7 @@ static GOptionEntry cmd_entries[] = {
    "Time out reads after the specified number of seconds", NULL},
   {"tls", 'T', 0, G_OPTION_ARG_NONE, &tls,
    "Use TLS (SSL)", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 #include "socket-common.c"


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