The branch, v3-2-test has been updated
       via  c0fc381ac7ad09fd454fd6802149c46b607069ee (commit)
      from  c364d44de2285cabb83a0c105f061b8640a3a431 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit c0fc381ac7ad09fd454fd6802149c46b607069ee
Author: Stefan Metzmacher <[email protected]>
Date:   Mon Dec 29 12:28:16 2008 +0100

    s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
    
    All callers expect 0 an success and -1 on error.
    
    metze
    (cherry picked from commit a255f9ce713b29552722ec73e4038226959e1c8e)
    (cherry picked from commit 9aa543fee7ebcc95125d18868bdec7e4bf577d8a)

-----------------------------------------------------------------------

Summary of changes:
 source/lib/dbwrap_util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/dbwrap_util.c b/source/lib/dbwrap_util.c
index 09e9071..0eaacb2 100644
--- a/source/lib/dbwrap_util.c
+++ b/source/lib/dbwrap_util.c
@@ -78,7 +78,7 @@ bool dbwrap_fetch_uint32(struct db_context *db, const char 
*keystr,
        return true;
 }
 
-bool dbwrap_store_uint32(struct db_context *db, const char *keystr, uint32_t v)
+int dbwrap_store_uint32(struct db_context *db, const char *keystr, uint32_t v)
 {
        struct db_record *rec;
        uint32 v_store;
@@ -86,7 +86,7 @@ bool dbwrap_store_uint32(struct db_context *db, const char 
*keystr, uint32_t v)
 
        rec = db->fetch_locked(db, NULL, string_term_tdb_data(keystr));
        if (rec == NULL) {
-               return false;
+               return -1;
        }
 
        SIVAL(&v_store, 0, v);


-- 
Samba Shared Repository

Reply via email to