summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-04-19 10:39:29 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-07 10:27:17 +0200
commit643b48013c1f556530eb2a89a8baf4aa40357278 (patch)
tree47094db13f4d1d1dff2abc0181c38612b575047e /src
parentbd524624bab2ea89f17fc84bc873ea0eb6ca7d20 (diff)
downloadsssd-643b48013c1f556530eb2a89a8baf4aa40357278.tar.gz
sssd-643b48013c1f556530eb2a89a8baf4aa40357278.tar.xz
sssd-643b48013c1f556530eb2a89a8baf4aa40357278.zip
SSS_CACHE: Make internal functions static
No need to export functions that are only used internally. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/sss_cache.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index 39e1388b8..54161b27c 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -121,8 +121,10 @@ struct cache_tool_ctx {
static void free_input_values(struct input_values *values);
static bool is_filter_valid(struct cache_tool_ctx *ctx,
struct input_values *values, int idb);
-errno_t init_domains(struct cache_tool_ctx *ctx, const char *domain);
-errno_t init_context(int argc, const char *argv[], struct cache_tool_ctx **tctx);
+static errno_t init_domains(struct cache_tool_ctx *ctx,
+ const char *domain);
+static errno_t init_context(int argc, const char *argv[],
+ struct cache_tool_ctx **tctx);
static errno_t invalidate_entry(TALLOC_CTX *ctx,
struct sss_domain_info *domain,
const char *name, int entry_type);
@@ -570,7 +572,8 @@ static errno_t invalidate_entry(TALLOC_CTX *ctx,
return ret;
}
-errno_t init_domains(struct cache_tool_ctx *ctx, const char *domain)
+static errno_t init_domains(struct cache_tool_ctx *ctx,
+ const char *domain)
{
char *confdb_path;
int ret;
@@ -627,7 +630,8 @@ errno_t init_domains(struct cache_tool_ctx *ctx, const char *domain)
return EOK;
}
-errno_t init_context(int argc, const char *argv[], struct cache_tool_ctx **tctx)
+static errno_t init_context(int argc, const char *argv[],
+ struct cache_tool_ctx **tctx)
{
struct cache_tool_ctx *ctx = NULL;
int idb = INVALIDATE_NONE;