Convert IF_CLONE_INITIALIZER() into C99 initializer.
authorbluhm <bluhm@openbsd.org>
Mon, 8 Jan 2018 23:05:21 +0000 (23:05 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 8 Jan 2018 23:05:21 +0000 (23:05 +0000)
OK mpi@

sys/net/if_var.h

index 56dd2b7..f36ae46 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_var.h,v 1.87 2018/01/04 10:48:02 mpi Exp $ */
+/*     $OpenBSD: if_var.h,v 1.88 2018/01/08 23:05:21 bluhm Exp $       */
 /*     $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $  */
 
 /*
@@ -90,7 +90,14 @@ struct if_clone {
 };
 
 #define        IF_CLONE_INITIALIZER(name, create, destroy)                     \
-       { { 0 }, name, sizeof(name) - 1, create, destroy }
+{                                                                      \
+  .ifc_list    = { NULL, NULL },                                       \
+  .ifc_name    = name,                                                 \
+  .ifc_namelen = sizeof(name) - 1,                                     \
+  .ifc_create  = create,                                               \
+  .ifc_destroy = destroy,                                              \
+}
+
 /*
  *  Locks used to protect struct members in this file:
  *     I       immutable after creation