Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libprop proplib: Nix trailing whitespace.



details:   https://anonhg.NetBSD.org/src/rev/870fad988efd
branches:  trunk
changeset: 368783:870fad988efd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Aug 03 21:13:46 2022 +0000

description:
proplib: Nix trailing whitespace.

diffstat:

 common/lib/libprop/prop_array_util.c      |   4 +-
 common/lib/libprop/prop_data.c            |  12 +++---
 common/lib/libprop/prop_dictionary.c      |  14 ++++----
 common/lib/libprop/prop_dictionary_util.c |   6 +-
 common/lib/libprop/prop_kern.c            |  10 +++---
 common/lib/libprop/prop_number.c          |  14 ++++----
 common/lib/libprop/prop_object.c          |  48 +++++++++++++++---------------
 common/lib/libprop/prop_string.c          |  28 +++++++++---------
 8 files changed, 68 insertions(+), 68 deletions(-)

diffs (truncated from 593 to 300 lines):

diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_array_util.c
--- a/common/lib/libprop/prop_array_util.c      Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_array_util.c      Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_array_util.c,v 1.8 2020/06/14 21:31:01 christos Exp $     */
+/*     $NetBSD: prop_array_util.c,v 1.9 2022/08/03 21:13:46 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@
        b = prop_array_get(array, indx);
        if (prop_object_type(b) != PROP_TYPE_BOOL)
                return (false);
-       
+
        *valp = prop_bool_true(b);
 
        return (true);
diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_data.c
--- a/common/lib/libprop/prop_data.c    Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_data.c    Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_data.c,v 1.17 2020/06/08 21:31:56 thorpej Exp $   */
+/*     $NetBSD: prop_data.c,v 1.18 2022/08/03 21:13:46 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
 
        if (_prop_object_externalize_end_tag(ctx, "data") == false)
                return (false);
-       
+
        return (true);
 }
 
@@ -377,7 +377,7 @@
 
        if (! prop_object_is_data(pd))
                return (false);
-       
+
        if (buf == NULL || buflen < pd->pd_size)
                return (false);
 
@@ -411,7 +411,7 @@
        v = _PROP_MALLOC(pd->pd_size, M_TEMP);
        if (v != NULL)
                memcpy(v, pd->pd_immutable, pd->pd_size);
-       
+
        return (v);
 }
 
@@ -569,7 +569,7 @@
                                return (false);
                        ch = (unsigned char) *src;
                        /* FALLTHROUGH */
-               
+
                case 3:         /* Valid, two bytes of info */
                        /*
                         * We know this char is a =.  Is there anything but
@@ -662,7 +662,7 @@
        buf = _PROP_MALLOC(len + 1, M_PROP_DATA);
        if (buf == NULL)
                return (true);
-       
+
        if (_prop_data_internalize_decode(ctx, buf, len + 1, &alen,
                                          &ctx->poic_cp) == false) {
                _PROP_FREE(buf, M_PROP_DATA);
diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_dictionary.c
--- a/common/lib/libprop/prop_dictionary.c      Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_dictionary.c      Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_dictionary.c,v 1.44 2022/07/02 16:30:13 andvar Exp $      */
+/*     $NetBSD: prop_dictionary.c,v 1.45 2022/08/03 21:13:46 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2006, 2007, 2020 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
        .pot_equals             =       _prop_dictionary_equals,
        .pot_equals_finish      =       _prop_dictionary_equals_finish,
        .pot_lock               =       _prop_dictionary_lock,
-       .pot_unlock             =       _prop_dictionary_unlock,                
+       .pot_unlock             =       _prop_dictionary_unlock,
 };
 
 static _prop_object_free_rv_t
@@ -257,7 +257,7 @@
                                                pdk->pdk_key) == false ||
            _prop_object_externalize_end_tag(ctx, "string") == false)
                return (false);
-       
+
        return (true);
 }
 
@@ -448,7 +448,7 @@
        pi = _prop_dictionary_iterator_locked(pd);
        if (pi == NULL)
                goto out;
-       
+
        ctx->poec_depth++;
        _PROP_ASSERT(ctx->poec_depth != 0);
 
@@ -475,7 +475,7 @@
        }
        if (_prop_object_externalize_end_tag(ctx, "dict") == false)
                goto out;
-       
+
        rv = true;
 
  out:
@@ -597,7 +597,7 @@
 
        if (oarray != NULL)
                _PROP_FREE(oarray, M_PROP_DICT);
-       
+
        return (true);
 }
 
@@ -1356,7 +1356,7 @@
        if (_prop_object_internalize_find_tag(ctx, "key",
                                _PROP_TAG_TYPE_END) == false)
                goto bad;
-   
+
        /* ..and now the beginning of the value. */
        if (_prop_object_internalize_find_tag(ctx, NULL,
                                _PROP_TAG_TYPE_START) == false)
diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_dictionary_util.c
--- a/common/lib/libprop/prop_dictionary_util.c Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_dictionary_util.c Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_dictionary_util.c,v 1.8 2020/06/15 00:46:00 christos Exp $        */
+/*     $NetBSD: prop_dictionary_util.c,v 1.9 2022/08/03 21:13:46 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
        b = prop_dictionary_get(dict, key);
        if (prop_object_type(b) != PROP_TYPE_BOOL)
                return (false);
-       
+
        *valp = prop_bool_true(b);
 
        return (true);
@@ -179,7 +179,7 @@
        cp = prop_string_value(str);
        if (cp == NULL)
                return (false);
-       
+
        *cpp = cp;
        return (true);
 }
diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_kern.c
--- a/common/lib/libprop/prop_kern.c    Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_kern.c    Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_kern.c,v 1.24 2018/10/14 17:37:40 jdolecek Exp $  */
+/*     $NetBSD: prop_kern.c,v 1.25 2022/08/03 21:13:46 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -143,7 +143,7 @@
                error = errno;
        else
                error = 0;
-       
+
        free(buf);
 
        return (error);
@@ -162,7 +162,7 @@
        if (rv != 0) {
                errno = rv;     /* pass up error value in errno */
                return rv;
-       } else 
+       } else
                return 0;
 }
 
@@ -179,7 +179,7 @@
        if (rv != 0) {
                errno = rv;     /* pass up error value in errno */
                return rv;
-       } else 
+       } else
                return 0;
 }
 
@@ -354,7 +354,7 @@
                error = errno;
        else
                error = 0;
-       
+
        free(buf);
 
        if (error != 0)
diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_number.c
--- a/common/lib/libprop/prop_number.c  Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_number.c  Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_number.c,v 1.33 2020/06/06 22:23:31 thorpej Exp $ */
+/*     $NetBSD: prop_number.c,v 1.34 2022/08/03 21:13:46 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -176,7 +176,7 @@
        return 0;
 }
 
-static void 
+static void
 _prop_number_lock(void)
 {
        /* XXX: init necessary? */
@@ -189,7 +189,7 @@
 {
        _PROP_MUTEX_UNLOCK(_prop_number_tree_mutex);
 }
-       
+
 static bool
 _prop_number_externalize(struct _prop_object_externalize_context *ctx,
                         void *v)
@@ -212,7 +212,7 @@
            _prop_object_externalize_append_cstring(ctx, tmpstr) == false ||
            _prop_object_externalize_end_tag(ctx, "integer") == false)
                return (false);
-       
+
        return (true);
 }
 
@@ -571,7 +571,7 @@
        if (pn->pn_value.pnv_is_unsigned &&
            (pn->pn_value.pnv_unsigned > INTMAX_MAX || val < 0))
                return (false);
-       
+
        return (pn->pn_value.pnv_signed == val);
 }
 
@@ -595,11 +595,11 @@
 
        if (! prop_object_is_number(pn))
                return (false);
-       
+
        if (! pn->pn_value.pnv_is_unsigned &&
            (pn->pn_value.pnv_signed < 0 || val > INT64_MAX))
                return (false);
-       
+
        return (pn->pn_value.pnv_unsigned == val);
 }
 
diff -r ecdc0cb7ee7a -r 870fad988efd common/lib/libprop/prop_object.c
--- a/common/lib/libprop/prop_object.c  Wed Aug 03 17:55:05 2022 +0000
+++ b/common/lib/libprop/prop_object.c  Wed Aug 03 21:13:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_object.c,v 1.31 2019/05/08 04:34:33 thorpej Exp $ */
+/*     $NetBSD: prop_object.c,v 1.32 2022/08/03 21:13:46 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
                memcpy(rv, v, size);    /* XXX */
                dealloc(v, 0);          /* XXX */
        }
-       
+
        return (rv);
 }
 #endif /* _STANDALONE */
@@ -116,7 +116,7 @@
            _prop_object_externalize_append_cstring(ctx, tag) == false ||
            _prop_object_externalize_append_char(ctx, '>') == false)
                return (false);
-       
+
        return (true);
 }
 
@@ -160,7 +160,7 @@
            _prop_object_externalize_append_char(ctx, '>') == false ||
            _prop_object_externalize_append_char(ctx, '\n') == false)
                return (false);
-       
+
        return (true);



Home | Main Index | Thread Index | Old Index