libwbclient: remove two unused defines
[samba.git] / nsswitch / winbind_nss_netbsd.c
index 9b8e0a2265f48d7c02182cc89287ec77353085c9..f6738061adb1bc61adb1983dd213e28577ff3561 100644 (file)
@@ -124,7 +124,7 @@ netbsdwinbind_getgrent_r(void *nsrv, void *nscb, va_list ap)
        *result = NULL;
        rerrno = 0;
 
-       rv = _nss_winbind_getgrent_r(grp, buffer, buflen, rerrno);
+       rv = _nss_winbind_getgrent_r(grp, buffer, buflen, &rerrno);
        if (rv == NS_SUCCESS)
                *result = grp;
        else
@@ -215,7 +215,6 @@ netbsdwinbind_getgroupmembership(void *nsrv, void *nscb, va_list ap)
 {
        int             *result = va_arg(ap, int *);
        const char      *uname  = va_arg(ap, const char *);
-       gid_t            agroup = va_arg(ap, gid_t);
        gid_t           *groups = va_arg(ap, gid_t *);
        int              maxgrp = va_arg(ap, int);
        int             *groupc = va_arg(ap, int *);
@@ -312,7 +311,7 @@ netbsdwinbind_getpwent_r(void *nsrv, void *nscb, va_list ap)
        *result = NULL;
        rerrno = 0;
 
-       rv = _nss_winbind_getpwent_r(pw, buffer, buflen, rerrno);
+       rv = _nss_winbind_getpwent_r(pw, buffer, buflen, &rerrno);
        if (rv == NS_SUCCESS)
                *result = pw;
        else