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>2003-05-21 12:01:57 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-05-21 12:01:57 +0400
commit5c768c978c52c277536c28925161148407206d63 (patch)
tree9cd32501cc344c4fb8d1343313c3021e4adc63be /winsup/cygwin/exceptions.cc
parent3a9c82d0117666ddb0c140389d05d057db3fad0c (diff)
* shared_info.h: Match shared_name declaration with below change.
* shared.cc (shared_name): Use incoming char * parameter instead of local static buffer. (open_shared): Accomodate new calling convention for shared_name. * exceptions.cc (events_init): Ditto. * sigproc.cc (getsem): Ditto. * syscalls.cc (login): Ditto. (logout): Ditto. (pututline): Ditto.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index ec4b7f4c9..482745e89 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -1134,11 +1134,13 @@ void
events_init (void)
{
char *name;
+ char mutex_name[MAX_PATH];
/* title_mutex protects modification of console title. It's necessary
while finding console window handle */
if (!(title_mutex = CreateMutex (&sec_all_nih, FALSE,
- name = shared_name ("title_mutex", 0))))
+ name = shared_name (mutex_name,
+ "title_mutex", 0))))
api_fatal ("can't create title mutex '%s', %E", name);
ProtectHandle (title_mutex);