git: 0c60f03d83e8 - stable/13 - libc/locale/lnumeric.c: minor style

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

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

commit 0c60f03d83e80d155d569b2156dc1cb7b5c9d358
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-02-02 18:15:34 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-02-09 00:42:46 +0000

    libc/locale/lnumeric.c: minor style
    
    (cherry picked from commit 1aa669c5f9c233989204de96e0557459378e85bc)
---
 lib/libc/locale/lnumeric.c | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c
index 046d1f1817dc..d7305505fa65 100644
--- a/lib/libc/locale/lnumeric.c
+++ b/lib/libc/locale/lnumeric.c
@@ -63,16 +63,16 @@ destruct_numeric(void *v)
 struct xlocale_numeric __xlocale_global_numeric;
 
 static int
-numeric_load_locale(struct xlocale_numeric *loc, int *using_locale, int *changed,
-		const char *name)
+numeric_load_locale(struct xlocale_numeric *loc, int *using_locale,
+    int *changed, const char *name)
 {
 	int ret;
 	struct lc_numeric_T *l = &loc->locale;
 
 	ret = __part_load_locale(name, using_locale,
-		&loc->buffer, "LC_NUMERIC",
-		LCNUMERIC_SIZE, LCNUMERIC_SIZE,
-		(const char**)l);
+	    &loc->buffer, "LC_NUMERIC",
+	    LCNUMERIC_SIZE, LCNUMERIC_SIZE,
+	    (const char**)l);
 	if (ret != _LDP_ERROR)
 		*changed= 1;
 	if (ret == _LDP_LOADED) {
@@ -89,30 +89,31 @@ numeric_load_locale(struct xlocale_numeric *loc, int *using_locale, int *changed
 int
 __numeric_load_locale(const char *name)
 {
-	return numeric_load_locale(&__xlocale_global_numeric,
-			&__xlocale_global_locale.using_numeric_locale,
-			&__xlocale_global_locale.numeric_locale_changed, name);
+	return (numeric_load_locale(&__xlocale_global_numeric,
+       	    &__xlocale_global_locale.using_numeric_locale,
+	    &__xlocale_global_locale.numeric_locale_changed, name));
 }
+
 void *
 __numeric_load(const char *name, locale_t l)
 {
-	struct xlocale_numeric *new = calloc(sizeof(struct xlocale_numeric), 1);
+	struct xlocale_numeric *new = calloc(sizeof(struct xlocale_numeric),
+	    1);
 	new->header.header.destructor = destruct_numeric;
 	if (numeric_load_locale(new, &l->using_numeric_locale,
-				&l->numeric_locale_changed, name) == _LDP_ERROR)
-	{
+	    &l->numeric_locale_changed, name) == _LDP_ERROR) {
 		xlocale_release(new);
-		return NULL;
+		return (NULL);
 	}
-	return new;
+	return (new);
 }
 
 struct lc_numeric_T *
 __get_current_numeric_locale(locale_t loc)
 {
-	return (loc->using_numeric_locale
-		? &((struct xlocale_numeric *)loc->components[XLC_NUMERIC])->locale
-		: (struct lc_numeric_T *)&_C_numeric_locale);
+	return (loc->using_numeric_locale ?
+	    &((struct xlocale_numeric *)loc->components[XLC_NUMERIC])->locale :
+	    (struct lc_numeric_T *)&_C_numeric_locale);
 }
 
 #ifdef LOCALE_DEBUG