From 8419ef9a1e574f91bdc06374d8680e05ca3105fe Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 24 Jun 2009 12:01:10 +0000 Subject: [PATCH] Use proper form of gnu designated initalizers. This lets clang compile this files. Approved by: ed (mentor) Silence from: harti (maintainer?) --- sys/contrib/ngatm/netnatm/sig/sig_uni.c | 2 +- sys/netgraph/atm/uni/ng_uni.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/ngatm/netnatm/sig/sig_uni.c b/sys/contrib/ngatm/netnatm/sig/sig_uni.c index ea2f70b67fa..e620fa7521c 100644 --- a/sys/contrib/ngatm/netnatm/sig/sig_uni.c +++ b/sys/contrib/ngatm/netnatm/sig/sig_uni.c @@ -109,7 +109,7 @@ static const char *sig_names[] = { }; static const char *verb_names[] = { -# define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] #D, +# define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] = #D, UNI_DEBUG_FACILITIES # undef UNI_DEBUG_DEFINE }; diff --git a/sys/netgraph/atm/uni/ng_uni.c b/sys/netgraph/atm/uni/ng_uni.c index 92b4ef71c68..e6fa04ba55a 100644 --- a/sys/netgraph/atm/uni/ng_uni.c +++ b/sys/netgraph/atm/uni/ng_uni.c @@ -743,7 +743,7 @@ uni_verbose(struct uni *uni, void *varg, u_int fac, const char *fmt, ...) va_list ap; static char *facnames[] = { -#define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] #D, +#define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] = #D, UNI_DEBUG_FACILITIES #undef UNI_DEBUG_DEFINE };