summaryrefslogtreecommitdiff
path: root/source3/profile
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-09-29 15:06:37 +0000
committerJeremy Allison <jra@samba.org>2014-10-03 19:55:09 +0200
commit7c1f6c7f61f27ec8e115cdce1e2ac15addd8fb84 (patch)
tree186cf283defe6ead67c9450d2f1b7af84dfa57da /source3/profile
parent902086d0d4c688236ad4a8248a50de8639e1e524 (diff)
downloadsamba-7c1f6c7f61f27ec8e115cdce1e2ac15addd8fb84.tar.gz
profiling: Make "struct profile_header" static
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/profile')
-rw-r--r--source3/profile/profile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c
index 5f9433f999b..e0e468450b7 100644
--- a/source3/profile/profile.c
+++ b/source3/profile/profile.c
@@ -34,7 +34,13 @@ static int shm_id;
static bool read_only;
#endif
-struct profile_header *profile_h;
+struct profile_header {
+ int prof_shm_magic;
+ int prof_shm_version;
+ struct profile_stats stats;
+};
+
+static struct profile_header *profile_h;
struct profile_stats *profile_p;
bool do_profile_flag = False;