summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-09 02:35:08 +0000
committerJeremy Allison <jra@samba.org>2002-01-09 02:35:08 +0000
commitd2687a00e1fe374128a7ad5707f1f7e62d8512d9 (patch)
treeb239ddfd189e1ae1e0a554483f0871e3aaa24183 /source3/smbd/server.c
parentaf85c2f06242928eacacfe301493686452807cb8 (diff)
downloadsamba-d2687a00e1fe374128a7ad5707f1f7e62d8512d9.tar.gz
samba-d2687a00e1fe374128a7ad5707f1f7e62d8512d9.tar.bz2
samba-d2687a00e1fe374128a7ad5707f1f7e62d8512d9.zip
Fixed up atomic update code.
Jeremy. (This used to be commit 274b04d4a6123fbfe363afc214e908ab36c7e8a7)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}