From 6a629bf5a402c94c9107e8cb5cd020b6591b1956 Mon Sep 17 00:00:00 2001 From: stsp Date: Tue, 9 Jun 2015 20:04:04 +0000 Subject: [PATCH] Remove unused parameter of load_locale_sub(). No assembly change on i386. Diff from Sebastien Marie. objdump foo help from uwe --- lib/libc/locale/setlocale.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 4da2f88779c..06ca9ac345d 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setlocale.c,v 1.20 2013/08/28 16:53:34 stsp Exp $ */ +/* $OpenBSD: setlocale.c,v 1.21 2015/06/09 20:04:04 stsp Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -77,7 +77,7 @@ static char current_locale_string[_LC_LAST * 33]; static char *currentlocale(void); static void revert_to_default(int); -static int load_locale_sub(int, const char *, int); +static int load_locale_sub(int, const char *); static char *loadlocale(int); static const char *__get_locale_env(int); @@ -238,7 +238,7 @@ set_lc_messages_locale(const char *locname) } static int -load_locale_sub(int category, const char *locname, int isspecial) +load_locale_sub(int category, const char *locname) { /* check for the default locales */ if (!strcmp(new_categories[category], "C") || @@ -278,7 +278,7 @@ loadlocale(int category) current_categories[category]) == 0) return (current_categories[category]); - if (!load_locale_sub(category, new_categories[category], 0)) { + if (!load_locale_sub(category, new_categories[category])) { (void)strlcpy(current_categories[category], new_categories[category], sizeof(current_categories[category])); return current_categories[category]; -- 2.20.1