From 040b628b818dca983b2615a0a9bc625d2c677c04 Mon Sep 17 00:00:00 2001 From: bluhm Date: Mon, 8 Jan 2018 23:05:21 +0000 Subject: [PATCH] Convert IF_CLONE_INITIALIZER() into C99 initializer. OK mpi@ --- sys/net/if_var.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 56dd2b710a4..f36ae46bc8d 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -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 -- 2.20.1