summaryrefslogtreecommitdiff
path: root/nis/nss_nis/nis-service.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-03 17:22:13 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-03 17:22:13 +0000
commitd6f6ffa1664b0f39aa95973ff97f9995f51ff62d (patch)
tree276775c1c7a9a9378525c54b26f29dd8e0d4462d /nis/nss_nis/nis-service.c
parent4bdd64534ff87261e204570697d7f7e83af5b6cd (diff)
downloadglibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.tar.gz
Update.
1999-08-02 Thorsten Kukuk <kukuk@suse.de> * nis/nis_callback.c: Fix port problem on big-endian machines * sunrpc/clnt_udp.c: Cast to uint32_t pointer, not short. RPC fields are always 32 bit. Patches from Paul Mackerras <paulus@cs.anu.edu.au> * nis/nss_nis/nis-service.c: Remove htons, port is always in network-byte-order. * nis/nss_nisplus/nisplus-service.c: Rename number to port.
Diffstat (limited to 'nis/nss_nis/nis-service.c')
-rw-r--r--nis/nss_nis/nis-service.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/nis/nss_nis/nis-service.c b/nis/nss_nis/nis-service.c
index 91bd65b22a..103b1e4115 100644
--- a/nis/nss_nis/nis-service.c
+++ b/nis/nss_nis/nis-service.c
@@ -1,6 +1,6 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
- Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1996.
+ Contributed by Thorsten Kukuk <kukuk@suse.de>, 1996.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -270,8 +270,7 @@ _nss_nis_getservbyport_r (int port, char *protocol, struct servent *serv,
while (!found &&
((status = internal_nis_getservent_r (serv, buffer, buflen, errnop,
&data)) == NSS_STATUS_SUCCESS))
- if (htons (serv->s_port) == port
- && strcmp (serv->s_proto, protocol) == 0)
+ if (serv->s_port == port && strcmp (serv->s_proto, protocol) == 0)
found = 1;
internal_nis_endservent (&data);