lib: Fix nonempty line endings
authorVolker Lendecke <vl@samba.org>
Sun, 11 Apr 2021 19:43:51 +0000 (21:43 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 19 Apr 2021 18:18:31 +0000 (18:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/util_tdb.c
lib/util/util_tdb.h

index 7b57e83395dbfaa3154f31c3e285ccb3bb09968b..976067efa6639ca3d5ca115ebb38ee966e3351f6 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
 
    tdb utility functions
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -89,7 +89,7 @@ TDB_DATA tdb_data_talloc_copy(TALLOC_CTX* mem_ctx, TDB_DATA data) {
 int tdb_lock_bystring(struct tdb_context *tdb, const char *keyval)
 {
        TDB_DATA key = string_term_tdb_data(keyval);
-       
+
        return tdb_chainlock(tdb, key);
 }
 
@@ -111,7 +111,7 @@ void tdb_unlock_bystring(struct tdb_context *tdb, const char *keyval)
 int tdb_read_lock_bystring(struct tdb_context *tdb, const char *keyval)
 {
        TDB_DATA key = string_term_tdb_data(keyval);
-       
+
        return tdb_chainlock_read(tdb, key);
 }
 
@@ -122,7 +122,7 @@ int tdb_read_lock_bystring(struct tdb_context *tdb, const char *keyval)
 void tdb_read_unlock_bystring(struct tdb_context *tdb, const char *keyval)
 {
        TDB_DATA key = string_term_tdb_data(keyval);
-       
+
        tdb_chainunlock_read(tdb, key);
 }
 
@@ -256,7 +256,7 @@ bool tdb_store_uint32(struct tdb_context *tdb, const char *keystr, uint32_t valu
 int tdb_store_bystring(struct tdb_context *tdb, const char *keystr, TDB_DATA data, int flags)
 {
        TDB_DATA key = string_term_tdb_data(keystr);
-       
+
        return tdb_store(tdb, key, data, flags);
 }
 
@@ -273,7 +273,7 @@ TDB_DATA tdb_fetch_bystring(struct tdb_context *tdb, const char *keystr)
 }
 
 /****************************************************************************
- Delete an entry using a null terminated string key. 
+ Delete an entry using a null terminated string key.
 ****************************************************************************/
 
 int tdb_delete_bystring(struct tdb_context *tdb, const char *keystr)
@@ -284,7 +284,7 @@ int tdb_delete_bystring(struct tdb_context *tdb, const char *keystr)
 }
 
 /****************************************************************************
- Atomic integer change. Returns old value. To create, set initial value in *oldval. 
+ Atomic integer change. Returns old value. To create, set initial value in *oldval.
 ****************************************************************************/
 
 int32_t tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int32_t *oldval, int32_t change_val)
@@ -301,7 +301,7 @@ int32_t tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int
                        /* but not because it didn't exist */
                        goto err_out;
                }
-               
+
                /* Start with 'old' value */
                val = *oldval;
 
@@ -312,7 +312,7 @@ int32_t tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int
 
        /* Increment value for storage and return next time */
        val += change_val;
-               
+
        if (tdb_store_int32(tdb, keystr, val) != 0)
                goto err_out;
 
@@ -325,7 +325,7 @@ int32_t tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int
 }
 
 /****************************************************************************
- Atomic unsigned integer change. Returns old value. To create, set initial value in *oldval. 
+ Atomic unsigned integer change. Returns old value. To create, set initial value in *oldval.
 ****************************************************************************/
 
 bool tdb_change_uint32_atomic(struct tdb_context *tdb, const char *keystr, uint32_t *oldval, uint32_t change_val)
@@ -338,7 +338,7 @@ bool tdb_change_uint32_atomic(struct tdb_context *tdb, const char *keystr, uint3
 
        if (!tdb_fetch_uint32(tdb, keystr, &val)) {
                /* It failed */
-               if (tdb_error(tdb) != TDB_ERR_NOEXIST) { 
+               if (tdb_error(tdb) != TDB_ERR_NOEXIST) {
                        /* and not because it didn't exist */
                        goto err_out;
                }
@@ -354,7 +354,7 @@ bool tdb_change_uint32_atomic(struct tdb_context *tdb, const char *keystr, uint3
 
        /* get a new value to store */
        val += change_val;
-               
+
        if (!tdb_store_uint32(tdb, keystr, val))
                goto err_out;
 
index 1e313c7acfb0cfc4c10efc9fc3fe26275a7b857e..1b03e4cec4ab3c4f9404e6ecd1df1cfb5973e01e 100644 (file)
@@ -98,12 +98,12 @@ TDB_DATA tdb_fetch_bystring(struct tdb_context *tdb, const char *keystr);
 int tdb_delete_bystring(struct tdb_context *tdb, const char *keystr);
 
 /****************************************************************************
- Atomic integer change. Returns old value. To create, set initial value in *oldval. 
+ Atomic integer change. Returns old value. To create, set initial value in *oldval.
 ****************************************************************************/
 int32_t tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int32_t *oldval, int32_t change_val);
 
 /****************************************************************************
- Atomic unsigned integer change. Returns old value. To create, set initial value in *oldval. 
+ Atomic unsigned integer change. Returns old value. To create, set initial value in *oldval.
 ****************************************************************************/
 bool tdb_change_uint32_atomic(struct tdb_context *tdb, const char *keystr, uint32_t *oldval, uint32_t change_val);