diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-06-24 12:01:10 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-06-24 12:01:10 +0000 |
commit | 841360d91c453a8c5ac107cf8463b159146ecefd (patch) | |
tree | c72c960aa82100e5161c03610185b2fb6a792be3 | |
parent | 5193abc7c8dbc7b90b55c1d04f2e2d21739b83c6 (diff) | |
download | FreeBSD-src-841360d91c453a8c5ac107cf8463b159146ecefd.zip FreeBSD-src-841360d91c453a8c5ac107cf8463b159146ecefd.tar.gz |
Use proper form of gnu designated initalizers. This lets
clang compile this files.
Approved by: ed (mentor)
Silence from: harti (maintainer?)
-rw-r--r-- | sys/contrib/ngatm/netnatm/sig/sig_uni.c | 2 | ||||
-rw-r--r-- | 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 ea2f70b..e620fa7 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 92b4ef7..e6fa04b 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 }; |