summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-03-13 13:34:40 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-19 14:13:50 +0100
commit1f469537545a20b62cb35966033be24e1c0cae39 (patch)
tree5d4765ea2f49870075def85d7c331b1c0a782222
parent233a3c6c48972b177e60d6ef4cecfacd3cf31659 (diff)
downloadsssd-1f469537545a20b62cb35966033be24e1c0cae39.tar.gz
sssd-1f469537545a20b62cb35966033be24e1c0cae39.tar.xz
sssd-1f469537545a20b62cb35966033be24e1c0cae39.zip
Removing unused declaration of functions and variable.
Variables dir_cc and file_cc are used in three modules: krb5_common.c, krb5_utils.c, krb5_child-test.c, therefore should be declared with extern in krb5_utils.h.
-rw-r--r--src/providers/krb5/krb5_utils.h4
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c10
-rw-r--r--src/responder/nss/nsssrv_cmd.c1
-rw-r--r--src/tests/krb5_child-test.c2
4 files changed, 2 insertions, 15 deletions
diff --git a/src/providers/krb5/krb5_utils.h b/src/providers/krb5/krb5_utils.h
index a123a795d..aad2770d4 100644
--- a/src/providers/krb5/krb5_utils.h
+++ b/src/providers/krb5/krb5_utils.h
@@ -64,7 +64,7 @@ struct sss_krb5_cc_be {
cc_be_remove remove;
};
-struct sss_krb5_cc_be file_cc;
+extern struct sss_krb5_cc_be file_cc;
errno_t create_ccache_dir(const char *dirname, pcre *illegal_re,
uid_t uid, gid_t gid, bool private_path);
@@ -86,7 +86,7 @@ errno_t get_ccache_file_data(const char *ccache_file, const char *client_name,
#ifdef HAVE_KRB5_DIRCACHE
-struct sss_krb5_cc_be dir_cc;
+extern struct sss_krb5_cc_be dir_cc;
errno_t cc_dir_create(const char *location, pcre *illegal_re,
uid_t uid, gid_t gid, bool private_path);
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index a79ceb59d..a4310b463 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2621,15 +2621,6 @@ static errno_t sdap_get_initgr_next_base(struct tevent_req *req)
return EOK;
}
-static struct tevent_req *sdap_initgr_rfc2307bis_send(
- TALLOC_CTX *memctx,
- struct tevent_context *ev,
- struct sdap_options *opts,
- struct sysdb_ctx *sysdb,
- struct sss_domain_info *dom,
- struct sdap_handle *sh,
- const char *name,
- const char *orig_dn);
static void sdap_get_initgr_user(struct tevent_req *subreq)
{
struct tevent_req *req = tevent_req_callback_data(subreq,
@@ -2802,7 +2793,6 @@ fail:
tevent_req_error(req, ret);
}
-static int sdap_initgr_rfc2307bis_recv(struct tevent_req *req);
static void sdap_get_initgr_pgid(struct tevent_req *req);
static void sdap_get_initgr_done(struct tevent_req *subreq)
{
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index b427ed9d9..c391ed532 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -3328,7 +3328,6 @@ static int nss_cmd_getgrent(struct cli_ctx *cctx)
return nss_cmd_getgrent_immediate(cmdctx);
}
-static errno_t nss_cmd_setgrent_recv(struct tevent_req *req);
static void nss_cmd_implicit_setgrent_done(struct tevent_req *req)
{
errno_t ret;
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index a72a35199..f6ddcaad2 100644
--- a/src/tests/krb5_child-test.c
+++ b/src/tests/krb5_child-test.c
@@ -39,8 +39,6 @@
#include "providers/krb5/krb5_utils.h"
extern struct dp_option default_krb5_opts[];
-extern struct sss_krb5_cc_be file_cc;
-extern struct sss_krb5_cc_be dir_cc;
static krb5_context krb5_error_ctx;
#define KRB5_CHILD_TEST_DEBUG(level, error) KRB5_DEBUG(level, krb5_error_ctx, error)