From 387fe043cb29876f6215a04438bcb1ecb12e7f52 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 5 Dec 1996 18:41:35 +0000 Subject: 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." :-) --- lib/libc/net/getservent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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: -- cgit v1.1