aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net/getservent.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-12-05 18:41:35 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-12-05 18:41:35 +0000
commitafb5b8ed4d419c5037a7d3a3f113a04fbee141df (patch)
tree7280293f11ddab432c3ec31c9bb8a17fa9ee9a10 /lib/libc/net/getservent.c
parentecc9c8e3cde4f808d5f150a998ed07f5f6baa2af (diff)
downloadsrc-afb5b8ed4d419c5037a7d3a3f113a04fbee141df.tar.gz
src-afb5b8ed4d419c5037a7d3a3f113a04fbee141df.zip
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." :-)
Notes
Notes: svn path=/head/; revision=20163
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 d28f40c4f0da..78d6df1bdea4 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: