From 4865dcbead699b861c24e87b16e20fc2f6698d3f Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 18 Sep 2013 18:41:08 +0200 Subject: RESPONDER: Use right function prototype Protype of function sss_ncache_check_netgr was different than definition of function sss_ncache_check_netgr. We did not catch it, because header file "responder/common/negcache.h" was not included in implementation file "responder/common/negcache.c" --- src/responder/common/negcache.c | 1 + src/responder/common/negcache.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c index 1f95b1b6..62c1537f 100644 --- a/src/responder/common/negcache.c +++ b/src/responder/common/negcache.c @@ -25,6 +25,7 @@ #include #include #include "tdb.h" +#include "responder/common/negcache.h" #define NC_ENTRY_PREFIX "NCE/" #define NC_USER_PREFIX NC_ENTRY_PREFIX"USER" diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h index 0b7e00b0..b8d385a9 100644 --- a/src/responder/common/negcache.h +++ b/src/responder/common/negcache.h @@ -33,7 +33,7 @@ int sss_ncache_check_user(struct sss_nc_ctx *ctx, int ttl, int sss_ncache_check_group(struct sss_nc_ctx *ctx, int ttl, struct sss_domain_info *dom, const char *name); int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, int ttl, - const char *domain, const char *name); + struct sss_domain_info *dom, const char *name); int sss_ncache_check_uid(struct sss_nc_ctx *ctx, int ttl, uid_t uid); int sss_ncache_check_gid(struct sss_nc_ctx *ctx, int ttl, gid_t gid); int sss_ncache_check_sid(struct sss_nc_ctx *ctx, int ttl, const char *sid); -- cgit