summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-10-12 15:41:16 +0000
committerHerb Lewis <herb@samba.org>2000-10-12 15:41:16 +0000
commitcae5eeb16e81b6aa95c68223268513c32aed7056 (patch)
treef97705e1283937e6ccdc0cee7768560888bb29f4
parent45632bb813da06d0139aa32b9ab99d472dcfaf25 (diff)
downloadsamba-cae5eeb16e81b6aa95c68223268513c32aed7056.tar.gz
samba-cae5eeb16e81b6aa95c68223268513c32aed7056.tar.xz
samba-cae5eeb16e81b6aa95c68223268513c32aed7056.zip
use macros for incrementing profile counters
-rw-r--r--source/smbd/process.c4
-rw-r--r--source/smbd/sec_ctx.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 1599ade12d6..dc56534edb1 100644
--- a/source/smbd/process.c
+++ b/source/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/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c
index 6837a8d4f8d..1f20ef062e8 100644
--- a/source/smbd/sec_ctx.c
+++ b/source/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;
}