summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/ldap.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-02-11 17:45:09 +0000
committerCorinna Vinschen <corinna@vinschen.de>2014-02-11 17:45:09 +0000
commitf8efc42f666a09de838d930a167ea32e81d899e0 (patch)
tree132627546e5c81fd9e0d90651f6fe5206018fd72 /winsup/cygwin/ldap.cc
parent7fa5cbbfcdb4ff064ccc17d7fb514d3ff1ad8d2d (diff)
downloadcygnal-f8efc42f666a09de838d930a167ea32e81d899e0.tar.gz
cygnal-f8efc42f666a09de838d930a167ea32e81d899e0.tar.bz2
cygnal-f8efc42f666a09de838d930a167ea32e81d899e0.zip
* ldap.cc (rediscover_thread): Give argument a useful name.
* miscfuncs.cc (NT_readline::init): It's a really bad idea trying to print a pointer to a PUNICODE_STRING as PUNICODE_STRING. Fix it. * uinfo.cc (cygheap_domain_info::init): Print status codes as hex values in debug output.
Diffstat (limited to 'winsup/cygwin/ldap.cc')
-rw-r--r--winsup/cygwin/ldap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/ldap.cc b/winsup/cygwin/ldap.cc
index de09aa2f6..66a7dbb76 100644
--- a/winsup/cygwin/ldap.cc
+++ b/winsup/cygwin/ldap.cc
@@ -73,15 +73,15 @@ PWCHAR rfc2307_gid_attr[] =
};
DWORD WINAPI
-rediscover_thread (LPVOID dummy)
+rediscover_thread (LPVOID domain)
{
PDOMAIN_CONTROLLER_INFOW pdci;
- DWORD ret = DsGetDcNameW (NULL, (PWCHAR) dummy, NULL, NULL,
+ DWORD ret = DsGetDcNameW (NULL, (PWCHAR) domain, NULL, NULL,
DS_FORCE_REDISCOVERY | DS_ONLY_LDAP_NEEDED, &pdci);
if (ret == ERROR_SUCCESS)
NetApiBufferFree (pdci);
else
- debug_printf ("DsGetDcNameW(%W) failed with error %u", dummy, ret);
+ debug_printf ("DsGetDcNameW(%W) failed with error %u", domain, ret);
return 0;
}