[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3306-gc0fc381
Stefan Metzmacher
metze at samba.org
Mon Dec 29 14:13:13 GMT 2008
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 <metze at samba.org>
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
More information about the samba-cvs
mailing list