Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/brconfig Constify an array of strings.



details:   https://anonhg.NetBSD.org/src/rev/bcb73b0db5cd
branches:  trunk
changeset: 338502:bcb73b0db5cd
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 28 01:35:31 2015 +0000

description:
Constify an array of strings.

diffstat:

 sbin/brconfig/brconfig.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a2317e94dc53 -r bcb73b0db5cd sbin/brconfig/brconfig.c
--- a/sbin/brconfig/brconfig.c  Thu May 28 01:01:37 2015 +0000
+++ b/sbin/brconfig/brconfig.c  Thu May 28 01:35:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brconfig.c,v 1.14 2012/08/23 12:06:32 drochner Exp $   */
+/*     $NetBSD: brconfig.c,v 1.15 2015/05/28 01:35:31 matt Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -43,7 +43,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: brconfig.c,v 1.14 2012/08/23 12:06:32 drochner Exp $");
+__RCSID("$NetBSD: brconfig.c,v 1.15 2015/05/28 01:35:31 matt Exp $");
 #endif
 
 
@@ -411,7 +411,7 @@
 static void
 show_interfaces(int sock, const char *bridge, const char *prefix)
 {
-       static const char *stpstates[] = {
+       static const char const stpstates[][11] = {
                "disabled",
                "listening",
                "learning",



Home | Main Index | Thread Index | Old Index