From owner-svn-src-all@FreeBSD.ORG Wed Jun 24 12:01:10 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6F4C1065749; Wed, 24 Jun 2009 12:01:10 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 925BB8FC14; Wed, 24 Jun 2009 12:01:10 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OC1AbZ013421; Wed, 24 Jun 2009 12:01:10 GMT (envelope-from rdivacky@svn.freebsd.org) Received: (from rdivacky@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5OC1A1H013418; Wed, 24 Jun 2009 12:01:10 GMT (envelope-from rdivacky@svn.freebsd.org) Message-Id: <200906241201.n5OC1A1H013418@svn.freebsd.org> From: Roman Divacky Date: Wed, 24 Jun 2009 12:01:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194825 - in head/sys: contrib/ngatm/netnatm/sig netgraph/atm/uni X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 12:01:11 -0000 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 };