diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-03 17:22:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-03 17:22:13 +0000 |
commit | d6f6ffa1664b0f39aa95973ff97f9995f51ff62d (patch) | |
tree | 276775c1c7a9a9378525c54b26f29dd8e0d4462d /nis/nss_nisplus | |
parent | 4bdd64534ff87261e204570697d7f7e83af5b6cd (diff) | |
download | glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.tar glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.tar.gz glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.tar.bz2 glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.zip |
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_nisplus')
-rw-r--r-- | nis/nss_nisplus/nisplus-service.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nis/nss_nisplus/nisplus-service.c b/nis/nss_nisplus/nisplus-service.c index 6dfae5e2ef..36bf25a22a 100644 --- a/nis/nss_nisplus/nisplus-service.c +++ b/nis/nss_nisplus/nisplus-service.c @@ -1,6 +1,6 @@ -/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 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>, 1997. + Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997. 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 @@ -347,9 +347,9 @@ _nss_nisplus_getservbyname_r (const char *name, const char *protocol, } enum nss_status -_nss_nisplus_getservbynumber_r (const int number, const char *protocol, - struct servent *serv, - char *buffer, size_t buflen, int *errnop) +_nss_nisplus_getservbyport_r (const int number, const char *protocol, + struct servent *serv, + char *buffer, size_t buflen, int *errnop) { if (tablename_val == NULL) { @@ -370,7 +370,7 @@ _nss_nisplus_getservbynumber_r (const int number, const char *protocol, nis_result *result; char buf[60 + strlen (protocol) + tablename_len]; - sprintf (buf, "[number=%d,proto=%s],%s", + sprintf (buf, "[port=%d,proto=%s],%s", number, protocol, tablename_val); result = nis_list (buf, FOLLOW_PATH | FOLLOW_LINKS, NULL, NULL); |