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 <quazi bk ru> 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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"