From 4c5dd2a2071c60eaa2d36f8a000fb90a5a5a5813 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 22 Apr 2003 19:52:59 +0000 Subject: Update. 2003-04-22 Ulrich Drepper * nscd/nscd-client.h: Add declaration for __nscd_open_socket. * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from open_socket. Not static anymore. (nscd_gethst_r): Use __nscd_open_socket. * nscd/nscd_getgr_r.c (open_socket): Removed. (nscd_getgr_r): Use __nscd_open_socket. * nscd/nscd_getpw_r.c (open_socket): Removed. (nscd_getpw_r): Use __nscd_open_socket. * nscd/nscd.c (main): Change type of fdn to long int and use strtol. * nscd/connections.c (handle_request): Add cast to avoid warning. --- nscd/nscd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nscd/nscd.c') diff --git a/nscd/nscd.c b/nscd/nscd.c index 97400d1cf1..5844b38407 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -176,7 +176,7 @@ main (int argc, char **argv) while ((dirent = readdir64 (d)) != NULL) { char *endp; - unsigned long int fdn = strtoul (dirent->d_name, &endp, 10); + long int fdn = strtol (dirent->d_name, &endp, 10); if (*endp == '\0' && fdn != dfdn && fdn >= min_close_fd) close ((int) fdn); -- cgit v1.2.3