summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-05-11 21:46:23 +0200
committerMichael Adam <obnox@samba.org>2012-05-13 22:41:48 +0200
commit05afaa8361124f7d659d36856ec6253b62fb09a8 (patch)
tree7a5bef9388ec3ecf68282555ca1651a25aca13e3 /source3/lib/dbwrap
parent508a33fc2af8f2c1bcfe9aad5362cf3a9762c585 (diff)
downloadsamba-05afaa8361124f7d659d36856ec6253b62fb09a8.tar.gz
samba-05afaa8361124f7d659d36856ec6253b62fb09a8.tar.bz2
samba-05afaa8361124f7d659d36856ec6253b62fb09a8.zip
s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_util.c
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r--source3/lib/dbwrap/dbwrap_util.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/lib/dbwrap/dbwrap_util.c b/source3/lib/dbwrap/dbwrap_util.c
index 3c224fec12..f5771c2398 100644
--- a/source3/lib/dbwrap/dbwrap_util.c
+++ b/source3/lib/dbwrap/dbwrap_util.c
@@ -55,7 +55,7 @@ NTSTATUS dbwrap_store_int32(struct db_context *db, const char *keystr,
int32_t v)
{
struct db_record *rec;
- int32 v_store;
+ int32_t v_store;
NTSTATUS status;
rec = dbwrap_fetch_locked(db, NULL, string_term_tdb_data(keystr));
@@ -66,7 +66,7 @@ NTSTATUS dbwrap_store_int32(struct db_context *db, const char *keystr,
SIVAL(&v_store, 0, v);
status = dbwrap_record_store(rec,
- make_tdb_data((const uint8 *)&v_store,
+ make_tdb_data((const uint8_t *)&v_store,
sizeof(v_store)),
TDB_REPLACE);
TALLOC_FREE(rec);
@@ -102,7 +102,7 @@ NTSTATUS dbwrap_store_uint32(struct db_context *db, const char *keystr,
uint32_t v)
{
struct db_record *rec;
- uint32 v_store;
+ uint32_t v_store;
NTSTATUS status;
rec = dbwrap_fetch_locked(db, NULL, string_term_tdb_data(keystr));
@@ -113,7 +113,7 @@ NTSTATUS dbwrap_store_uint32(struct db_context *db, const char *keystr,
SIVAL(&v_store, 0, v);
status = dbwrap_record_store(rec,
- make_tdb_data((const uint8 *)&v_store,
+ make_tdb_data((const uint8_t *)&v_store,
sizeof(v_store)),
TDB_REPLACE);
TALLOC_FREE(rec);
@@ -168,7 +168,7 @@ static NTSTATUS dbwrap_change_uint32_atomic_action(struct db_context *db,
SIVAL(&v_store, 0, val);
ret = dbwrap_record_store(rec,
- make_tdb_data((const uint8 *)&v_store,
+ make_tdb_data((const uint8_t *)&v_store,
sizeof(v_store)),
TDB_REPLACE);
@@ -375,12 +375,12 @@ NTSTATUS dbwrap_trans_delete(struct db_context *db, TDB_DATA key)
NTSTATUS dbwrap_trans_store_int32(struct db_context *db, const char *keystr,
int32_t v)
{
- int32 v_store;
+ int32_t v_store;
SIVAL(&v_store, 0, v);
return dbwrap_trans_store(db, string_term_tdb_data(keystr),
- make_tdb_data((const uint8 *)&v_store,
+ make_tdb_data((const uint8_t *)&v_store,
sizeof(v_store)),
TDB_REPLACE);
}
@@ -388,12 +388,12 @@ NTSTATUS dbwrap_trans_store_int32(struct db_context *db, const char *keystr,
NTSTATUS dbwrap_trans_store_uint32(struct db_context *db, const char *keystr,
uint32_t v)
{
- uint32 v_store;
+ uint32_t v_store;
SIVAL(&v_store, 0, v);
return dbwrap_trans_store(db, string_term_tdb_data(keystr),
- make_tdb_data((const uint8 *)&v_store,
+ make_tdb_data((const uint8_t *)&v_store,
sizeof(v_store)),
TDB_REPLACE);
}