Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 12:01:10 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194825 - in head/sys: contrib/ngatm/netnatm/sig netgraph/atm/uni
Message-ID:  <200906241201.n5OC1A1H013418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rdivacky
Date: Wed Jun 24 12:01:10 2009
New Revision: 194825
URL: http://svn.freebsd.org/changeset/base/194825

Log:
  Use proper form of gnu designated initalizers. This lets
  clang compile this files.
  
  Approved by: ed (mentor)
  Silence from: harti (maintainer?)

Modified:
  head/sys/contrib/ngatm/netnatm/sig/sig_uni.c
  head/sys/netgraph/atm/uni/ng_uni.c

Modified: head/sys/contrib/ngatm/netnatm/sig/sig_uni.c
==============================================================================
--- head/sys/contrib/ngatm/netnatm/sig/sig_uni.c	Wed Jun 24 12:01:00 2009	(r194824)
+++ head/sys/contrib/ngatm/netnatm/sig/sig_uni.c	Wed Jun 24 12:01:10 2009	(r194825)
@@ -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
 };

Modified: head/sys/netgraph/atm/uni/ng_uni.c
==============================================================================
--- head/sys/netgraph/atm/uni/ng_uni.c	Wed Jun 24 12:01:00 2009	(r194824)
+++ head/sys/netgraph/atm/uni/ng_uni.c	Wed Jun 24 12:01:10 2009	(r194825)
@@ -743,7 +743,7 @@ uni_verbose(struct uni *uni, void *varg,
 	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
 	};



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906241201.n5OC1A1H013418>