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:
authorChristopher Faylor <me@cgf.cx>2012-03-10 21:51:33 +0400
committerChristopher Faylor <me@cgf.cx>2012-03-10 21:51:33 +0400
commit6c95669d23c27bad29a47a70ff2dec7136f6cdf6 (patch)
treedf8e8b1f102f71296658d3882475aad5749a9209 /winsup/cygwin/dtable.cc
parentecd676f23c21e6bec1d3b8833bff6a1520751fce (diff)
* dtable.cc (fh_alloc): Treat pc.dev as unsigned.
* fhandler_console.cc (fhandler_console::set_unit): Use lock always to avoid races between competing cygwin processes running on the console.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 612506e0c..7f414accc 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -478,7 +478,7 @@ fh_alloc (path_conv& pc)
fh = cnew (fhandler_console, pc.dev);
break;
default:
- switch ((int) pc.dev)
+ switch ((DWORD) pc.dev)
{
case FH_CONSOLE:
case FH_CONIN: