From: Bernhard Reutner-Fischer Date: Wed, 29 Apr 2015 14:51:33 +0000 (-0400) Subject: getrpcent: Fix compilation on glibc X-Git-Tag: libtirpc-0-2-6-rc4~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b28ce6488f5d9be52a0099a12142a3085a86de2a;p=libtirpc getrpcent: Fix compilation on glibc implicit declaration of function '_yp_check' [-Wimplicit-function-declaration] Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Steve Dickson --- diff --git a/src/getrpcent.c b/src/getrpcent.c index 6da006a..fbb2da4 100644 --- a/src/getrpcent.c +++ b/src/getrpcent.c @@ -108,7 +108,7 @@ getrpcbynumber(number) if (d == 0) return (0); #ifdef YP - if (!__yp_nomap && _yp_check(&d->domain)) { + if (!__yp_nomap && __yp_check(&d->domain)) { sprintf(adrstr, "%d", number); reason = yp_match(d->domain, "rpc.bynumber", adrstr, strlen(adrstr), &d->current, &d->currentlen); @@ -175,7 +175,7 @@ setrpcent(f) if (d == 0) return; #ifdef YP - if (!__yp_nomap && _yp_check(NULL)) { + if (!__yp_nomap && __yp_check(NULL)) { if (d->current) free(d->current); d->current = NULL; @@ -199,7 +199,7 @@ endrpcent() if (d == 0) return; #ifdef YP - if (!__yp_nomap && _yp_check(NULL)) { + if (!__yp_nomap && __yp_check(NULL)) { if (d->current && !d->stayopen) free(d->current); d->current = NULL; @@ -228,7 +228,7 @@ getrpcent() if (d == 0) return(NULL); #ifdef YP - if (!__yp_nomap && _yp_check(&d->domain)) { + if (!__yp_nomap && __yp_check(&d->domain)) { if (d->current == NULL && d->currentlen == 0) { reason = yp_first(d->domain, "rpc.bynumber", &d->current, &d->currentlen,