summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nsswitch/winbind_nss_freebsd.c6
-rw-r--r--nsswitch/wins_freebsd.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/nsswitch/winbind_nss_freebsd.c b/nsswitch/winbind_nss_freebsd.c
index f424adbe9e7..d3f54894dc2 100644
--- a/nsswitch/winbind_nss_freebsd.c
+++ b/nsswitch/winbind_nss_freebsd.c
@@ -39,7 +39,7 @@ NSS_METHOD_PROTOTYPE(__nss_compat_setpwent);
NSS_METHOD_PROTOTYPE(__nss_compat_endpwent);
NSS_METHOD_PROTOTYPE(__nss_compat_endpwent);
-NSS_METHOD_PROTOTYPE(__freebsd_getgroupmembership);
+static NSS_METHOD_PROTOTYPE(__freebsd_getgroupmembership);
static ns_mtab methods[] = {
{ NSDB_GROUP, "getgrnam_r", __nss_compat_getgrnam_r, _nss_winbind_getgrnam_r },
@@ -85,7 +85,7 @@ gr_addgid(gid_t gid, gid_t *groups, int maxgrp, int *grpcnt)
defaultsrc, uname, agroup, groups, maxgrp, grpcnt);
*/
-int
+static int
__freebsd_getgroupmembership(void *retval, void *mdata, va_list ap)
{
const char *uname = va_arg(ap, const char *);
@@ -127,7 +127,7 @@ __freebsd_getgroupmembership(void *retval, void *mdata, va_list ap)
return NSS_STATUS_NOTFOUND;
}
-ns_mtab *
+_PUBLIC_ ns_mtab *
nss_module_register(const char *source, unsigned int *mtabsize,
nss_module_unregister_fn *unreg)
{
diff --git a/nsswitch/wins_freebsd.c b/nsswitch/wins_freebsd.c
index c1845d2a173..8637ce615f8 100644
--- a/nsswitch/wins_freebsd.c
+++ b/nsswitch/wins_freebsd.c
@@ -26,7 +26,7 @@ extern enum nss_status _nss_wins_gethostbyname2_r(const char *name, int af, stru
ns_mtab *nss_module_register(const char *source, unsigned int *, nss_module_unregister_fn *);
-NSS_METHOD_PROTOTYPE(__nss_wins_freebsd_gethostbyname2_r);
+static NSS_METHOD_PROTOTYPE(__nss_wins_freebsd_gethostbyname2_r);
static ns_mtab methods[] =
{
@@ -43,7 +43,7 @@ static ns_mtab methods[] =
{ NSDB_HOSTS, "getnetbyaddr", NULL, NULL }
};
-int
+static int
__nss_wins_freebsd_gethostbyname2_r(void *retval, void *mdata, va_list ap)
{
int (*fn)(const char *, int, struct hostent *, char *, size_t, int *);
@@ -71,7 +71,7 @@ __nss_wins_freebsd_gethostbyname2_r(void *retval, void *mdata, va_list ap)
return (status);
}
-ns_mtab *
+_PUBLIC_ ns_mtab *
nss_module_register(const char *source __unused, unsigned int *mtabsize,
nss_module_unregister_fn *unreg)
{