summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/lmessages.c
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2001-12-11 15:55:42 +0000
committerphantom <phantom@FreeBSD.org>2001-12-11 15:55:42 +0000
commitf3ed7361342301c866a8d105912aa6f104ffc8b4 (patch)
treec62a1177cbccca85d9a4ab689c4715da8c827bad /lib/libc/locale/lmessages.c
parentcdb5aff0aa9a9eb36e9553221a2c5949131c95d9 (diff)
downloadFreeBSD-src-f3ed7361342301c866a8d105912aa6f104ffc8b4.zip
FreeBSD-src-f3ed7361342301c866a8d105912aa6f104ffc8b4.tar.gz
* Add my e-mail to copyrights
* style(9)'ify
Diffstat (limited to 'lib/libc/locale/lmessages.c')
-rw-r--r--lib/libc/locale/lmessages.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc/locale/lmessages.c b/lib/libc/locale/lmessages.c
index a9bdf5b..4dcd719 100644
--- a/lib/libc/locale/lmessages.c
+++ b/lib/libc/locale/lmessages.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001 Alexey Zelkin
+ * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -46,19 +46,21 @@ static const struct lc_messages_T _C_messages_locale = {
static struct lc_messages_T _messages_locale;
static int _messages_using_locale;
-static char * messages_locale_buf;
+static char *_messages_locale_buf;
int
__messages_load_locale(const char *name) {
- /* Propose that we can have incomplete locale file (w/o "{yes,no}str").
- Initialize them before loading. In case of complete locale, they'll
- be initialized to loaded value, otherwise they'll not be touched. */
+ /*
+ * Propose that we can have incomplete locale file (w/o "{yes,no}str").
+ * Initialize them before loading. In case of complete locale, they'll
+ * be initialized to loaded value, otherwise they'll not be touched.
+ */
_messages_locale.yesstr = empty;
_messages_locale.nostr = empty;
return __part_load_locale(name, &_messages_using_locale,
- messages_locale_buf, "LC_MESSAGES",
+ _messages_locale_buf, "LC_MESSAGES",
LCMESSAGES_SIZE_FULL, LCMESSAGES_SIZE_MIN,
(const char **)&_messages_locale);
}
OpenPOWER on IntegriCloud