summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/passdb/secrets.c2
-rw-r--r--source3/smbd/process.c4
-rw-r--r--source3/smbd/server.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index fd616c6841..a8c942bb8c 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -234,7 +234,7 @@ void reset_globals_after_fork(void)
if (tdb) {
uint32 initial_val = sys_getpid();
- tdb_change_int_atomic(tdb, "INFO/random_seed", (int *)&initial_val, 1);
+ tdb_change_int32_atomic(tdb, "INFO/random_seed", (int *)&initial_val, 1);
set_rand_reseed_data((unsigned char *)&initial_val, sizeof(initial_val));
}
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 2b31a24ced..ff53acbd9e 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -791,7 +791,7 @@ static int construct_reply(char *inbuf,char *outbuf,int size,int bufsize)
****************************************************************************/
static BOOL smbd_process_limit(void)
{
- int total_smbds;
+ int32 total_smbds;
if (lp_max_smbd_processes()) {
@@ -807,7 +807,7 @@ set. Ignoring max smbd restriction.\n"));
return False;
}
- if (tdb_change_int_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, 1) == -1)
+ if (tdb_change_int32_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, 1) == -1)
return True;
return total_smbds > lp_max_smbd_processes();
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 1fab45048d..08bcf22dd2 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -460,11 +460,11 @@ update the current smbd process count
static void decrement_smbd_process_count(void)
{
- int total_smbds;
+ int32 total_smbds;
if (lp_max_smbd_processes()) {
total_smbds = 0;
- tdb_change_int_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, -1);
+ tdb_change_int32_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, -1);
}
}