aboutsummaryrefslogtreecommitdiff
path: root/nis/nss_nis/nis-service.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-26 20:35:45 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-26 20:35:45 +0000
commitc7e41631b203863e5efe280446e553bbe231c549 (patch)
tree9414c9ea655e5837c86a7fc23b56c4f26d50fd75 /nis/nss_nis/nis-service.c
parent6d2e234a786ceb96b8daf68995bb8cc2a4478225 (diff)
downloadglibc-c7e41631b203863e5efe280446e553bbe231c549.zip
glibc-c7e41631b203863e5efe280446e553bbe231c549.tar.gz
glibc-c7e41631b203863e5efe280446e553bbe231c549.tar.bz2
Update.
2000-03-20 Richard Henderson <rth@cygnus.com> * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last argument to yperr2nss is an int, not size_t. * posix/regex.c (print_partial_compiled_pattern): Cast all ptrdiff_t to long for printing. (print_compiled_pattern): Use Z for printing size_t. * posix/testfnm.c (tests): Avoid trigraphs. * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use a C comment, not an assembly comment. * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use of __ASSUME_32BITUIDS.
Diffstat (limited to 'nis/nss_nis/nis-service.c')
-rw-r--r--nis/nss_nis/nis-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-service.c b/nis/nss_nis/nis-service.c
index 43e090b..12ae1c6 100644
--- a/nis/nss_nis/nis-service.c
+++ b/nis/nss_nis/nis-service.c
@@ -325,6 +325,7 @@ _nss_nis_getservbyport_r (int port, char *protocol, struct servent *serv,
char key[100 + strlen (protocol) + 2];
char *domain, *result;
size_t keylen, len;
+ int int_len;
/* If this fails, the other solution will also fail. */
if (yp_get_default_domain (&domain))
@@ -333,7 +334,8 @@ _nss_nis_getservbyport_r (int port, char *protocol, struct servent *serv,
/* key is: "port/protocol" */
keylen = snprintf (key, sizeof (key), "%d/%s", port, protocol);
status = yperr2nss (yp_match (domain, "services.byname", key,
- keylen, &result, &len));
+ keylen, &result, &int_len));
+ len = int_len;
/* If we found the key, it's ok and parse the result. If not,
fall through and parse the complete table. */