diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-17 17:16:50 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-12-29 09:05:15 +0100 |
commit | a255f9ce713b29552722ec73e4038226959e1c8e (patch) | |
tree | a94ddaa88484f00e859d67e1bbe68771f4335f84 /source3/lib | |
parent | b719595fd6fd8606b4a5eefa2b0cc24da503a44c (diff) | |
download | samba-a255f9ce713b29552722ec73e4038226959e1c8e.tar.gz samba-a255f9ce713b29552722ec73e4038226959e1c8e.tar.bz2 samba-a255f9ce713b29552722ec73e4038226959e1c8e.zip |
s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
All callers expect 0 an success and -1 on error.
metze
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c index ddc613150b..3be3a49e7d 100644 --- a/source3/lib/dbwrap_util.c +++ b/source3/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); |