Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/locale remove a global variable "saved_categories" ...



details:   https://anonhg.NetBSD.org/src/rev/185e65e781c5
branches:  trunk
changeset: 534797:185e65e781c5
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Aug 03 06:12:30 2002 +0000

description:
remove a global variable "saved_categories" as it isn't necessary anymore.

diffstat:

 lib/libc/locale/setlocale.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (39 lines):

diff -r b0510ecd95de -r 185e65e781c5 lib/libc/locale/setlocale.c
--- a/lib/libc/locale/setlocale.c       Sat Aug 03 05:53:01 2002 +0000
+++ b/lib/libc/locale/setlocale.c       Sat Aug 03 06:12:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setlocale.c,v 1.40 2002/08/02 12:27:32 tshiozak Exp $  */
+/*     $NetBSD: setlocale.c,v 1.41 2002/08/03 06:12:30 yamt Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)setlocale.c        8.1 (Berkeley) 7/4/93";
 #else
-__RCSID("$NetBSD: setlocale.c,v 1.40 2002/08/02 12:27:32 tshiozak Exp $");
+__RCSID("$NetBSD: setlocale.c,v 1.41 2002/08/03 06:12:30 yamt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -99,11 +99,6 @@
  */
 static char new_categories[_LC_LAST][32];
 
-/*
- * Backup area to back out changes on failure
- */
-static char saved_categories[_LC_LAST][32];
-
 static char current_locale_string[_LC_LAST * 33];
 char *_PathLocale;
 
@@ -196,8 +191,6 @@
 
        loadlocale_success = 0;
        for (i = 1; i < _LC_LAST; ++i) {
-               (void)strlcpy(saved_categories[i], current_categories[i],
-                   sizeof(saved_categories[i]));
                if (loadlocale(i) != NULL)
                        loadlocale_success = 1;
        }



Home | Main Index | Thread Index | Old Index