]> granicus.if.org Git - libtirpc/commitdiff
getrpcent: Fix compilation on glibc
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 29 Apr 2015 14:51:33 +0000 (10:51 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 29 Apr 2015 15:43:39 +0000 (11:43 -0400)
implicit declaration of function '_yp_check' [-Wimplicit-function-declaration]

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/getrpcent.c

index 6da006a4d9de657d248bd7fb21c6051a715fbb6f..fbb2da4f6e9882664e80158367ebabf3dacd5298 100644 (file)
@@ -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,