summaryrefslogtreecommitdiffstats
path: root/source3/smbd/process.c
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
commit7a42a9da7d26ce4635aa479f93de6794317b2f29 (patch)
tree2be9e907f1b1ec038da7e2ecb8d0e792075aa25e /source3/smbd/process.c
parentca4acd520e01a568266f13e3c4ce77ce2ed8d77e (diff)
downloadsamba-7a42a9da7d26ce4635aa479f93de6794317b2f29.tar.gz
samba-7a42a9da7d26ce4635aa479f93de6794317b2f29.tar.xz
samba-7a42a9da7d26ce4635aa479f93de6794317b2f29.zip
use macros for incrementing profile counters
(This used to be commit cae5eeb16e81b6aa95c68223268513c32aed7056)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 1599ade12d6..dc56534edb1 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