summaryrefslogtreecommitdiff
path: root/usr.bin/locale
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-13 20:44:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-13 20:44:22 +0000
commitea792c44642668013aaad483e9a4748337b66c3d (patch)
treee053ff52c50da6bd90397783baf1eec1686b87fb /usr.bin/locale
parentcd03313ec3ea86b84cb37afe42694cdc283c4c12 (diff)
handle proto warnings
Diffstat (limited to 'usr.bin/locale')
-rw-r--r--usr.bin/locale/locale.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/locale/locale.c b/usr.bin/locale/locale.c
index 46c74819ec6..781cdf064f2 100644
--- a/usr.bin/locale/locale.c
+++ b/usr.bin/locale/locale.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locale.c,v 1.6 2013/07/01 00:39:14 fgsch Exp $ */
+/* $OpenBSD: locale.c,v 1.7 2013/11/13 20:44:21 deraadt Exp $ */
/*
* Copyright (c) 2013 Stefan Sperling <stsp@openbsd.org>
*
@@ -35,7 +35,7 @@ struct category_name {
{ 0, NULL},
};
-void
+static void
put_assignment(const char *name, const char *value, int double_quoted)
{
char c;
@@ -62,8 +62,8 @@ put_assignment(const char *name, const char *value, int double_quoted)
putchar('\n');
}
-void
-show_current_locale()
+static void
+show_current_locale(void)
{
char *lang, *lc_all;
int i;
@@ -260,7 +260,7 @@ const char * const some_locales[] = {
NULL
};
-void
+static void
show_locales(void)
{
int i = 0;
@@ -269,7 +269,7 @@ show_locales(void)
puts(some_locales[i++]);
}
-void
+static void
show_charsets(void)
{
char *charset;
@@ -284,7 +284,7 @@ show_charsets(void)
} while (charset);
}
-void
+static void
usage(void)
{
fprintf(stderr, "usage: %s [-a | -m]\n", __progname);