git: c3f2e156baf0 - stable/13 - libc/locale/lmonetary.c: minor style

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 09 Feb 2022 00:48:14 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=c3f2e156baf0c05e67ecb09f9ff22b691b9a7f85

commit c3f2e156baf0c05e67ecb09f9ff22b691b9a7f85
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-02-02 18:10:43 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-02-09 00:42:45 +0000

    libc/locale/lmonetary.c: minor style
    
    (cherry picked from commit 0fed1e6f1831a4f4cf8d000465afeea8165d3523)
---
 lib/libc/locale/lmonetary.c | 38 ++++++++++++++++++++------------------
 1 file changed, 20 insertions(+), 18 deletions(-)

diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c
index 99800ae69922..c8811e8d59a4 100644
--- a/lib/libc/locale/lmonetary.c
+++ b/lib/libc/locale/lmonetary.c
@@ -98,15 +98,15 @@ destruct_monetary(void *v)
 
 static int
 monetary_load_locale_l(struct xlocale_monetary *loc, int *using_locale,
-		int *changed, const char *name)
+    int *changed, const char *name)
 {
 	int ret;
 	struct lc_monetary_T *l = &loc->locale;
 
 	ret = __part_load_locale(name, using_locale,
-		&loc->buffer, "LC_MONETARY",
-		LCMONETARY_SIZE_FULL, LCMONETARY_SIZE_MIN,
-		(const char **)l);
+	    &loc->buffer, "LC_MONETARY",
+	    LCMONETARY_SIZE_FULL, LCMONETARY_SIZE_MIN,
+	    (const char **)l);
 	if (ret != _LDP_ERROR)
 		*changed = 1;
 	if (ret == _LDP_LOADED) {
@@ -148,38 +148,40 @@ monetary_load_locale_l(struct xlocale_monetary *loc, int *using_locale,
 	}
 	return (ret);
 }
+
 int
 __monetary_load_locale(const char *name)
 {
-	return monetary_load_locale_l(&__xlocale_global_monetary,
-			&__xlocale_global_locale.using_monetary_locale,
-			&__xlocale_global_locale.monetary_locale_changed, name);
+	return (monetary_load_locale_l(&__xlocale_global_monetary,
+	    &__xlocale_global_locale.using_monetary_locale,
+	    &__xlocale_global_locale.monetary_locale_changed, name));
 }
-void* __monetary_load(const char *name, locale_t l)
+
+void *
+__monetary_load(const char *name, locale_t l)
 {
-	struct xlocale_monetary *new = calloc(sizeof(struct xlocale_monetary), 1);
+	struct xlocale_monetary *new = calloc(sizeof(struct xlocale_monetary),
+	    1);
 	new->header.header.destructor = destruct_monetary;
 	if (monetary_load_locale_l(new, &l->using_monetary_locale,
-				&l->monetary_locale_changed, name) == _LDP_ERROR)
-	{
+	    &l->monetary_locale_changed, name) == _LDP_ERROR) {
 		xlocale_release(new);
-		return NULL;
+		return (NULL);
 	}
-	return new;
+	return (new);
 }
 
-
 struct lc_monetary_T *
 __get_current_monetary_locale(locale_t loc)
 {
-	return (loc->using_monetary_locale
-		? &((struct xlocale_monetary*)loc->components[XLC_MONETARY])->locale
-		: (struct lc_monetary_T *)&_C_monetary_locale);
+	return (loc->using_monetary_locale ?
+	    &((struct xlocale_monetary*)loc->components[XLC_MONETARY])->locale :
+	    (struct lc_monetary_T *)&_C_monetary_locale);
 }
 
 #ifdef LOCALE_DEBUG
 void
-monetdebug() {
+monetdebug(void) {
 printf(	"int_curr_symbol = %s\n"
 	"currency_symbol = %s\n"
 	"mon_decimal_point = %s\n"