about summary refs log tree commit diff
path: root/nscd/nscd_gethst_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-02 16:27:57 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-02 16:27:57 +0000
commit813f4f4dff904de333642ffa8c17b9309d8f182e (patch)
treeb4b2174e80fa05212e0e1bc91d9abda4b94306dc /nscd/nscd_gethst_r.c
parentb1418d8f39dd2b26fd67c3350493431f99514285 (diff)
downloadglibc-813f4f4dff904de333642ffa8c17b9309d8f182e.tar.gz
glibc-813f4f4dff904de333642ffa8c17b9309d8f182e.tar.xz
glibc-813f4f4dff904de333642ffa8c17b9309d8f182e.zip
Update.
	* nscd/nscd_getpw_r.c (nscd_getpw_r): Mark as internal and take
	extra argument with length of key string.
	(__nscd_getpwnam_r): Call nscd_getpw_r with extra argument.
	(__nscd_getpwuid_r): Create key string on stack.
	* nscd/nscd_getgr_r.c: Mark local functions as internal.
	* nscd/nscd_gethst_r.c: Likewise.
Diffstat (limited to 'nscd/nscd_gethst_r.c')
-rw-r--r--nscd/nscd_gethst_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c
index e8d9ef2495..46f1611c63 100644
--- a/nscd/nscd_gethst_r.c
+++ b/nscd/nscd_gethst_r.c
@@ -37,7 +37,7 @@ int __nss_not_use_nscd_hosts;
 
 static int nscd_gethst_r (const char *key, size_t keylen, request_type type,
 			  struct hostent *resultbuf, char *buffer,
-			  size_t buflen, int *h_errnop);
+			  size_t buflen, int *h_errnop) internal_function;
 
 
 int
@@ -114,6 +114,7 @@ open_socket (void)
 
 
 static int
+internal_function
 nscd_gethst_r (const char *key, size_t keylen, request_type type,
 	       struct hostent *resultbuf, char *buffer, size_t buflen,
 	       int *h_errnop)