summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getservent.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-05 18:41:35 +0000
committerjkh <jkh@FreeBSD.org>1996-12-05 18:41:35 +0000
commit387fe043cb29876f6215a04438bcb1ecb12e7f52 (patch)
tree7280293f11ddab432c3ec31c9bb8a17fa9ee9a10 /lib/libc/net/getservent.c
parent04f6ba42aba0902423c9ef2d2218ed3c640e7ad2 (diff)
downloadFreeBSD-src-387fe043cb29876f6215a04438bcb1ecb12e7f52.zip
FreeBSD-src-387fe043cb29876f6215a04438bcb1ecb12e7f52.tar.gz
Eliminate 3 more examples of gratutiously passing arrays by address.
Everyone please call ParaSoft today and say "I will buy 57 copies of Insure++ tomorrow, but first I want a FreeBSD version." :-)
Diffstat (limited to 'lib/libc/net/getservent.c')
-rw-r--r--lib/libc/net/getservent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c
index d28f40c..78d6df1 100644
--- a/lib/libc/net/getservent.c
+++ b/lib/libc/net/getservent.c
@@ -227,14 +227,14 @@ again:
#ifdef YP
if (*p == '+' && _yp_check(NULL)) {
if (___getservbyname_yp != NULL) {
- if (!_getservbyname_yp(&line))
+ if (!_getservbyname_yp(line))
goto tryagain;
}
else if (___getservbyport_yp != 0) {
- if (!_getservbyport_yp(&line))
+ if (!_getservbyport_yp(line))
goto tryagain;
}
- else if (!_getservent_yp(&line))
+ else if (!_getservent_yp(line))
goto tryagain;
}
unpack:
OpenPOWER on IntegriCloud