Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-24 13:53:57 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-24 13:53:57 +0300
commit6a32d500a9d601b4f25cee0e1ec6b2ac5195a7e9 (patch)
tree45c154ef60d0fd4ed89b16835e468d92400150e7 /winsup/cygwin/sec_auth.cc
parent28186e81d947a830d9895cecc2d8e836a3cbccd0 (diff)
* sec_auth.cc (str2buf2uni): Remove.
* security.h (str2buf2uni): Remove declaration.
Diffstat (limited to 'winsup/cygwin/sec_auth.cc')
-rw-r--r--winsup/cygwin/sec_auth.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index 5f3183ec5..a456eac26 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -126,19 +126,6 @@ str2buf2lsa (LSA_STRING &tgt, char *buf, const char *srcstr)
memcpy (buf, srcstr, tgt.MaximumLength);
}
-/* The dimension of buf is assumed to be at least strlen(srcstr) + 1,
- The result will be shorter if the input has multibyte chars */
-void
-str2buf2uni (UNICODE_STRING &tgt, WCHAR *buf, const char *srcstr)
-{
- tgt.Buffer = (PWCHAR) buf;
- tgt.MaximumLength = (strlen (srcstr) + 1) * sizeof (WCHAR);
- tgt.Length = sys_mbstowcs (buf, tgt.MaximumLength / sizeof (WCHAR), srcstr)
- * sizeof (WCHAR);
- if (tgt.Length)
- tgt.Length -= sizeof (WCHAR);
-}
-
void
str2uni_cat (UNICODE_STRING &tgt, const char *srcstr)
{