diff --git a/source3/utils/status.c b/source3/utils/status.c index 978d3c54e8b..64c2a93e234 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 b4e6d56b366..059d321780e 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 00000000000..a8a73e12178 --- /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 . + */ + +#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 c58f696efa2..dfc5da7756a 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) {