From owner-svn-src-all@FreeBSD.ORG Fri Oct 28 17:53:35 2011 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 865F3106566C; Fri, 28 Oct 2011 17:53:35 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 767968FC0A; Fri, 28 Oct 2011 17:53:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SHrZWs071298; Fri, 28 Oct 2011 17:53:35 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p9SHrZ1E071295; Fri, 28 Oct 2011 17:53:35 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201110281753.p9SHrZ1E071295@svn.freebsd.org> From: Xin LI Date: Fri, 28 Oct 2011 17:53:35 +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: r226887 - head/sys/dev/tws 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: Fri, 28 Oct 2011 17:53:35 -0000 Author: delphij Date: Fri Oct 28 17:53:34 2011 New Revision: 226887 URL: http://svn.freebsd.org/changeset/base/226887 Log: Don't expose a constant array into global namespace. Reported by: Ruslan Yakovlev via yongari MFC after: 3 days Modified: head/sys/dev/tws/tws_services.c head/sys/dev/tws/tws_services.h Modified: head/sys/dev/tws/tws_services.c ============================================================================== --- head/sys/dev/tws/tws_services.c Fri Oct 28 17:38:27 2011 (r226886) +++ head/sys/dev/tws/tws_services.c Fri Oct 28 17:53:34 2011 (r226887) @@ -53,7 +53,7 @@ struct tws_sense *tws_find_sense_from_mf -struct error_desc array[] = { +static struct error_desc array[] = { { "Cannot add sysctl tree node", 0x2000, ERROR, "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" }, { "Register window not available", 0x2001, ERROR, Modified: head/sys/dev/tws/tws_services.h ============================================================================== --- head/sys/dev/tws/tws_services.h Fri Oct 28 17:38:27 2011 (r226886) +++ head/sys/dev/tws/tws_services.h Fri Oct 28 17:53:34 2011 (r226887) @@ -114,7 +114,6 @@ struct error_desc { char *error_str; }; -extern struct error_desc array[]; /* ----------- q services ------------- */ #define TWS_FREE_Q 0