diff options
author | Herb Lewis <herb@samba.org> | 2000-10-12 15:43:49 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2000-10-12 15:43:49 +0000 |
commit | a8d784c7160451f0be25f747c1cdfd039729f600 (patch) | |
tree | bd03305083c761a8d76028dbcb5fd6b03f2c3598 | |
parent | abb2147fdc171d4a7dc1eaea2f84d6fb7585f2a0 (diff) | |
download | samba-a8d784c7160451f0be25f747c1cdfd039729f600.tar.gz samba-a8d784c7160451f0be25f747c1cdfd039729f600.tar.xz samba-a8d784c7160451f0be25f747c1cdfd039729f600.zip |
use macros for incrementing profile counters
-rw-r--r-- | source/smbd/process.c | 4 | ||||
-rw-r--r-- | source/smbd/sec_ctx.c | 4 |
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..5f3b2dc6797 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; } |