From 724c4ed1461ed54d6664043ac79e8ad1f2f06227 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 25 Jul 2006 19:44:17 +0000 Subject: [PATCH] * security.cc (get_logon_server): Remove nret and use dret for everything to avoid a g++ warning. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/security.cc | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ec6966ecb..c96b91064 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-07-25 Christopher Faylor + + * security.cc (get_logon_server): Remove nret and use dret for + everything to avoid a g++ warning. + 2006-07-25 Corinna Vinschen * include/cygwin/version.h: Bump DLL version to 1.7.0. diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 0970805ec..d435f3072 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -220,7 +220,6 @@ get_logon_server (const char *domain, char *server, WCHAR *wserver, { DWORD dret; PDOMAIN_CONTROLLER_INFOA pci; - NET_API_STATUS nret; WCHAR *buf; DWORD size = INTERNET_MAX_HOST_NAME_LENGTH + 1; WCHAR wdomain[size]; @@ -251,10 +250,10 @@ get_logon_server (const char *domain, char *server, WCHAR *wserver, /* NT4 w/o DSClient */ sys_mbstowcs (wdomain, domain, INTERNET_MAX_HOST_NAME_LENGTH + 1); if (rediscovery) - nret = NetGetAnyDCName (NULL, wdomain, (LPBYTE *) &buf); + dret = NetGetAnyDCName (NULL, wdomain, (LPBYTE *) &buf); else - nret = NetGetDCName (NULL, wdomain, (LPBYTE *) &buf); - if (nret == NERR_Success) + dret = NetGetDCName (NULL, wdomain, (LPBYTE *) &buf); + if (dret == NERR_Success) { sys_wcstombs (server, INTERNET_MAX_HOST_NAME_LENGTH + 1, buf); if (wserver) @@ -265,7 +264,7 @@ get_logon_server (const char *domain, char *server, WCHAR *wserver, return true; } } - __seterrno_from_win_error (nret); + __seterrno_from_win_error (dret); return false; }