From e69b32e8c28cc0e56c181f2148f29fa60e0114f7 Mon Sep 17 00:00:00 2001 From: James Peach Date: Tue, 18 Apr 2006 06:26:23 +0000 Subject: r15116: Allow the user to set winbind nss timeouts in seconds on IRIX. Don't convert the default timeout to milliseconds twice. (This used to be commit 853ebd6e84cf52a309945f39cdf188ca346da8eb) --- source3/nsswitch/winbind_nss_irix.c | 12 +++++++----- source3/nsswitch/winbind_nss_irix.h | 4 ---- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbind_nss_irix.c b/source3/nsswitch/winbind_nss_irix.c index fd15f57940..05085ba1f3 100644 --- a/source3/nsswitch/winbind_nss_irix.c +++ b/source3/nsswitch/winbind_nss_irix.c @@ -335,11 +335,11 @@ send_next_request(nsd_file_t *rq, struct winbindd_request *request) switch (rq->f_index) { case LOOKUP: timeout = nsd_attr_fetch_long(rq->f_attrs, - "lookup_timeout", 10, 10 * 1000); + "lookup_timeout", 10, 10); break; case LIST: timeout = nsd_attr_fetch_long(rq->f_attrs, - "list_timeout", 10, 10 * 1000); + "list_timeout", 10, 10); break; default: nsd_logprintf(NSD_LOG_OPER, @@ -366,9 +366,11 @@ send_next_request(nsd_file_t *rq, struct winbindd_request *request) /* * Set up callback and timeouts */ - nsd_logprintf(NSD_LOG_MIN, "send_next_request (winbind) fd = %d\n",winbindd_fd); - nsd_callback_new(winbindd_fd,winbind_callback,NSD_READ); - nsd_timeout_new(rq,timeout,winbind_timeout,(void *)0); + nsd_logprintf(NSD_LOG_MIN, "send_next_request (winbind) fd = %d\n", + winbindd_fd); + + nsd_callback_new(winbindd_fd, winbind_callback, NSD_READ); + nsd_timeout_new(rq, timeout * 1000, winbind_timeout, NULL); return NSD_CONTINUE; } diff --git a/source3/nsswitch/winbind_nss_irix.h b/source3/nsswitch/winbind_nss_irix.h index 7878abb981..339e316ff9 100644 --- a/source3/nsswitch/winbind_nss_irix.h +++ b/source3/nsswitch/winbind_nss_irix.h @@ -41,8 +41,4 @@ typedef enum NSS_STATUS_TRYAGAIN=NS_TRYAGAIN } NSS_STATUS; -#define NSD_MEM_STATIC 0 -#define NSD_MEM_VOLATILE 1 -#define NSD_MEM_DYNAMIC 2 - #endif /* _WINBIND_NSS_IRIX_H */ -- cgit