summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-29 15:08:06 +0200
committerMichael Adam <obnox@samba.org>2009-07-29 16:26:27 +0200
commita86e163c1be3485698a238508101c205a47bc937 (patch)
tree1769109dc1f7a5720afbab5329d8080352bdedf9 /source3
parent3acef0993501468f3ef807e76b56aa296f8a87d0 (diff)
downloadsamba-a86e163c1be3485698a238508101c205a47bc937.tar.gz
samba-a86e163c1be3485698a238508101c205a47bc937.tar.bz2
samba-a86e163c1be3485698a238508101c205a47bc937.zip
s3:dbwrap: change dbwrap_change_int32_atomic() to take int32_t, not int32
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/dbwrap_util.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 78e2b25dcb..b7a16567fe 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -447,7 +447,7 @@ NTSTATUS dbwrap_trans_change_uint32_atomic(struct db_context *db,
uint32_t *oldval,
uint32_t change_val);
NTSTATUS dbwrap_change_int32_atomic(struct db_context *db, const char *keystr,
- int32 *oldval, int32 change_val);
+ int32_t *oldval, int32_t change_val);
NTSTATUS dbwrap_trans_store(struct db_context *db, TDB_DATA key, TDB_DATA dbuf,
int flag);
NTSTATUS dbwrap_trans_delete(struct db_context *db, TDB_DATA key);
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c
index 72442690e3..ace480eaa4 100644
--- a/source3/lib/dbwrap_util.c
+++ b/source3/lib/dbwrap_util.c
@@ -191,10 +191,10 @@ NTSTATUS dbwrap_trans_change_uint32_atomic(struct db_context *db,
* store *oldval + change_val to db.
*/
NTSTATUS dbwrap_change_int32_atomic(struct db_context *db, const char *keystr,
- int32 *oldval, int32 change_val)
+ int32_t *oldval, int32_t change_val)
{
struct db_record *rec;
- int32 val = -1;
+ int32_t val = -1;
TDB_DATA data;
NTSTATUS ret;