Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xinstall make an auto const variable static.



details:   https://anonhg.NetBSD.org/src/rev/bac63d359286
branches:  trunk
changeset: 532484:bac63d359286
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Jun 08 15:02:27 2002 +0000

description:
make an auto const variable static.

diffstat:

 usr.bin/xinstall/xinstall.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9bda4467569e -r bac63d359286 usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c       Sat Jun 08 15:00:17 2002 +0000
+++ b/usr.bin/xinstall/xinstall.c       Sat Jun 08 15:02:27 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xinstall.c,v 1.71 2002/04/10 06:12:04 lukem Exp $      */
+/*     $NetBSD: xinstall.c,v 1.72 2002/06/08 15:02:27 yamt Exp $       */
 
 /*
  * Copyright (c) 1987, 1993
@@ -50,7 +50,7 @@
 #if 0
 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
 #else
-__RCSID("$NetBSD: xinstall.c,v 1.71 2002/04/10 06:12:04 lukem Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.72 2002/06/08 15:02:27 yamt Exp $");
 #endif
 #endif /* not lint */
 
@@ -920,7 +920,7 @@
 metadata_log(const char *path, const char *type, struct timeval *tv,
        const char *link)
 {
-       const char      extra[] = { ' ', '\t', '\n', '\\', '#', '\0' };
+       static const char       extra[] = { ' ', '\t', '\n', '\\', '#', '\0' };
        char            *buf;
 
        if (!metafp)    



Home | Main Index | Thread Index | Old Index