summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-10 14:18:50 +0200
committerJeremy Allison <jra@samba.org>2014-11-19 20:51:37 +0100
commitcfb12b11ce9290ba9922353d2f461691718ceb11 (patch)
tree33384ad55e070a2da58041fa81fc8ea038ecc6a1
parentf82bb9fffd7a9f85aeb4781c654723e305bc9c48 (diff)
downloadsamba-cfb12b11ce9290ba9922353d2f461691718ceb11.tar.gz
samba-cfb12b11ce9290ba9922353d2f461691718ceb11.tar.xz
samba-cfb12b11ce9290ba9922353d2f461691718ceb11.zip
s3:smbprofile: Make "status_profile.h" a proper header
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/utils/status.c4
-rw-r--r--source3/utils/status_profile.c4
-rw-r--r--source3/utils/status_profile.h28
-rw-r--r--source3/utils/status_profile_dummy.c1
4 files changed, 31 insertions, 6 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 978d3c54e8..64c2a93e23 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -44,6 +44,7 @@
#include "librpc/gen_ndr/notify.h"
#include "lib/conn_tdb.h"
#include "serverid.h"
+#include "status_profile.h"
#define SMB_MAXPIDS 2048
static uid_t Ucrit_uid = 0; /* added by OH */
@@ -61,9 +62,6 @@ static bool do_checks = true;
const char *username = NULL;
-extern bool status_profile_dump(bool be_verbose);
-extern bool status_profile_rates(bool be_verbose);
-
/* added by OH */
static void Ucrit_addUid(uid_t uid)
{
diff --git a/source3/utils/status_profile.c b/source3/utils/status_profile.c
index b4e6d56b36..059d321780 100644
--- a/source3/utils/status_profile.c
+++ b/source3/utils/status_profile.c
@@ -20,9 +20,7 @@
#include "includes.h"
#include "smbprofile.h"
-
-bool status_profile_dump(bool be_verbose);
-bool status_profile_rates(bool be_verbose);
+#include "status_profile.h"
static void profile_separator(const char * title)
{
diff --git a/source3/utils/status_profile.h b/source3/utils/status_profile.h
new file mode 100644
index 0000000000..a8a73e1217
--- /dev/null
+++ b/source3/utils/status_profile.h
@@ -0,0 +1,28 @@
+/*
+ * Samba Unix/Linux SMB client library
+ * Dump profiles
+ * Copyright (C) Volker Lendecke 2014
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __STATUS_PROFILE_H__
+#define __STATUS_PROFILE_H__
+
+#include "replace.h"
+
+bool status_profile_dump(bool be_verbose);
+bool status_profile_rates(bool be_verbose);
+
+#endif
diff --git a/source3/utils/status_profile_dummy.c b/source3/utils/status_profile_dummy.c
index c58f696efa..dfc5da7756 100644
--- a/source3/utils/status_profile_dummy.c
+++ b/source3/utils/status_profile_dummy.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "smbprofile.h"
+#include "status_profile.h"
bool status_profile_dump(bool be_verbose)
{