aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/security.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-07-25 19:44:17 +0000
committerChristopher Faylor <me@cgf.cx>2006-07-25 19:44:17 +0000
commit724c4ed1461ed54d6664043ac79e8ad1f2f06227 (patch)
tree328011d38f7d22f595b32be5b74ed237574949cb /winsup/cygwin/security.cc
parent70e476d27be8e49146c49e8d6e1319100b84d5eb (diff)
downloadnewlib-724c4ed1461ed54d6664043ac79e8ad1f2f06227.zip
newlib-724c4ed1461ed54d6664043ac79e8ad1f2f06227.tar.gz
newlib-724c4ed1461ed54d6664043ac79e8ad1f2f06227.tar.bz2
* security.cc (get_logon_server): Remove nret and use dret for everything to
avoid a g++ warning.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r--winsup/cygwin/security.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index 0970805..d435f30 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;
}