nss_wrapper: fix nss_wrapper build for solaris.
authorGünther Deschner <gd@samba.org>
Thu, 28 May 2009 09:51:46 +0000 (11:51 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 May 2009 11:44:39 +0000 (13:44 +0200)
Guenther
(cherry picked from commit 136b2a3eb21eda28e7a18547751ee20f097e7492)

lib/nss_wrapper/nss_wrapper.c

index 3c061f0de84b478c1f58d090ab1fd84229006a60..1875dc3e4fc0f3a46dc4597e04fadb19fcad1d25 100644 (file)
@@ -954,6 +954,7 @@ _PUBLIC_ int nwrap_getpwent_r(struct passwd *pwdst, char *buf,
 {
        if (!nwrap_enabled()) {
 #ifdef SOLARIS_GETPWENT_R
+               struct passwd *pw;
                pw = real_getpwent_r(pwdst, buf, buflen);
                if (!pw) {
                        if (errno == 0) {
@@ -1188,6 +1189,7 @@ _PUBLIC_ int nwrap_getgrent_r(struct group *grdst, char *buf,
 {
        if (!nwrap_enabled()) {
 #ifdef SOLARIS_GETGRENT_R
+               struct group *gr;
                gr = real_getgrent_r(grdst, buf, buflen);
                if (!gr) {
                        if (errno == 0) {