summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-09-18 18:41:08 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-20 20:52:04 +0200
commit4865dcbead699b861c24e87b16e20fc2f6698d3f (patch)
tree87629f10c555f57401e57624be3069914df1832d
parenta8e7d395b4aab4e7a236aebf162a844ae51cc7db (diff)
downloadsssd-4865dcbead699b861c24e87b16e20fc2f6698d3f.tar.gz
sssd-4865dcbead699b861c24e87b16e20fc2f6698d3f.tar.bz2
sssd-4865dcbead699b861c24e87b16e20fc2f6698d3f.zip
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"
-rw-r--r--src/responder/common/negcache.c1
-rw-r--r--src/responder/common/negcache.h2
2 files changed, 2 insertions, 1 deletions
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 <fcntl.h>
#include <time.h>
#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);