summaryrefslogtreecommitdiff
path: root/support/nfsidmap/nss.c
diff options
context:
space:
mode:
authorJustin Mitchell <jumitche@redhat.com>2017-09-28 14:29:01 -0400
committerSteve Dickson <steved@redhat.com>2017-09-28 14:29:01 -0400
commit321000012d0ef006f916f7c8a23d19354d48d064 (patch)
tree545ae49ef0db1c796016cb03054570887e6c8e43 /support/nfsidmap/nss.c
parentc398c843fef2fc3aa81971fb70ed48f10b081c56 (diff)
downloadnfs-utils-libnfsdmap.tar.gz
nfs-utils: cleanup warnings from merged libnfsidmap codelibnfsdmap
Clean up a bunch of warnings about unused parameters, signedness differences, etc that we inherited from the merged libnfsidmap code. Signed-off-by: Justin Mitchell <jumitche@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfsidmap/nss.c')
-rw-r--r--support/nfsidmap/nss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/nfsidmap/nss.c b/support/nfsidmap/nss.c
index 48215ff..a86d768 100644
--- a/support/nfsidmap/nss.c
+++ b/support/nfsidmap/nss.c
@@ -379,7 +379,7 @@ out:
static int nss_gss_princ_to_ids(char *secname, char *princ,
uid_t *uid, uid_t *gid,
- extra_mapping_params **ex)
+ extra_mapping_params **UNUSED(ex))
{
struct passwd *pw;
int err = 0;
@@ -429,7 +429,7 @@ out:
int nss_gss_princ_to_grouplist(char *secname, char *princ,
gid_t *groups, int *ngroups,
- extra_mapping_params **ex)
+ extra_mapping_params **UNUSED(ex))
{
struct passwd *pw;
int ret = -EINVAL;
@@ -462,7 +462,7 @@ struct trans_func nss_trans = {
.gss_princ_to_grouplist = nss_gss_princ_to_grouplist,
};
-struct trans_func *libnfsidmap_plugin_init()
+struct trans_func *libnfsidmap_plugin_init(void)
{
return (&nss_trans);
}