summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c4
-rw-r--r--source3/smbd/sec_ctx.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 1599ade12d..dc56534edb 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -636,9 +636,7 @@ void process_smb(char *inbuf, char *outbuf)
int32 len = smb_len(inbuf);
int nread = len + 4;
-#ifdef WITH_PROFILE
- profile_p->smb_count++;
-#endif
+ DO_PROFILE_INC(smb_count);
if (trans_num == 0) {
/* on the first packet, check the global hosts allow/ hosts
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c
index 6837a8d4f8..1f20ef062e 100644
--- a/source3/smbd/sec_ctx.c
+++ b/source3/smbd/sec_ctx.c
@@ -62,9 +62,7 @@ static BOOL become_uid(uid_t uid)
set_effective_uid(uid);
current_user.uid = uid;
-#ifdef WITH_PROFILE
- profile_p->uid_changes++;
-#endif
+ DO_PROFILE_INC(uid_changes)
return True;
}