diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-05 01:04:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-05 01:04:14 +0000 |
commit | 3542d62676c840b0cf71d0ecb75f041208554ba7 (patch) | |
tree | 5bb8293286acf96a37b6c75abd44aaa29673540d /nis | |
parent | c4f0da0d56afe3f496315a052b40086d8a94789f (diff) |
Remove htons, port is always in network-byte-order.
Diffstat (limited to 'nis')
-rw-r--r-- | nis/nss_nis/nis-service.c | 7 |
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..571b4f32f6 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); |