summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-02 12:52:05 +0000
committerJeremy Allison <jra@samba.org>2014-10-03 19:55:09 +0200
commit0e1b60e8c3325a1e5ea77f420326b254d5404389 (patch)
tree9095420c7245639aca0c4c2bc73cf70dd2f03fd1
parentd523e0b7ed67d1697a1b8ab5f58902afd2a496b3 (diff)
downloadsamba-0e1b60e8c3325a1e5ea77f420326b254d5404389.tar.gz
samba-0e1b60e8c3325a1e5ea77f420326b254d5404389.tar.xz
samba-0e1b60e8c3325a1e5ea77f420326b254d5404389.zip
profiling: Move some #defines to profile.c
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/include/smbprofile.h4
-rw-r--r--source3/profile/profile.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h
index fd17b7afea..3040aa0918 100644
--- a/source3/include/smbprofile.h
+++ b/source3/include/smbprofile.h
@@ -24,10 +24,6 @@
/* this file defines the profile structure in the profile shared
memory area */
-#define PROF_SHMEM_KEY ((key_t)0x07021999)
-#define PROF_SHM_MAGIC 0x6349985
-#define PROF_SHM_VERSION 13
-
/* time values in the following structure are in microseconds */
#define __profile_stats_value(which, domain) domain[which]
diff --git a/source3/profile/profile.c b/source3/profile/profile.c
index e0e468450b..9ef2c69ff6 100644
--- a/source3/profile/profile.c
+++ b/source3/profile/profile.c
@@ -25,6 +25,10 @@
#include "messages.h"
#include "smbprofile.h"
+#define PROF_SHMEM_KEY ((key_t)0x07021999)
+#define PROF_SHM_MAGIC 0x6349985
+#define PROF_SHM_VERSION 13
+
#ifdef WITH_PROFILE
#define IPC_PERMS ((S_IRUSR | S_IWUSR) | S_IRGRP | S_IROTH)
#endif /* WITH_PROFILE */