use macros for incrementing profile counters
authorHerb Lewis <herb@samba.org>
Thu, 12 Oct 2000 15:41:16 +0000 (15:41 +0000)
committerHerb Lewis <herb@samba.org>
Thu, 12 Oct 2000 15:41:16 +0000 (15:41 +0000)
(This used to be commit cae5eeb16e81b6aa95c68223268513c32aed7056)

source3/smbd/process.c
source3/smbd/sec_ctx.c

index 1599ade12d6940af75147bb33b223a7457be2e10..dc56534edb12038e52cb5b830fd74de0be37aceb 100644 (file)
@@ -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
index 6837a8d4f8dbd743cd4d0dd3176a3ad05bf38c12..1f20ef062e83ac2056a49f1eed03cda41d1349c7 100644 (file)
@@ -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;
 }