diff options
author | nijtmans <nijtmans> | 2011-01-25 22:33:56 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2011-01-25 22:33:56 (GMT) |
commit | 860c71bfb869a99031dcc18c0b45f8c2e7b0b0e0 (patch) | |
tree | 150b7e7d28f9c6fd1f44e197c65ffe5c4908eec8 /win/tclWinSerial.c | |
parent | 9e8baada957304199619be751f3cd6fe06fb5912 (diff) | |
download | tcl-860c71bfb869a99031dcc18c0b45f8c2e7b0b0e0.zip tcl-860c71bfb869a99031dcc18c0b45f8c2e7b0b0e0.tar.gz tcl-860c71bfb869a99031dcc18c0b45f8c2e7b0b0e0.tar.bz2 |
Fix various gcc-4.5.2 64-bit warning messages,
e.g. by using full 64-bits for socket fd's
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r-- | win/tclWinSerial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c index 2f8cbd9..986025d 100644 --- a/win/tclWinSerial.c +++ b/win/tclWinSerial.c @@ -11,7 +11,7 @@ * * Serial functionality implemented by Rolf.Schroedter@dlr.de * - * RCS: @(#) $Id: tclWinSerial.c,v 1.44 2010/09/13 14:20:38 nijtmans Exp $ + * RCS: @(#) $Id: tclWinSerial.c,v 1.45 2011/01/25 22:33:56 nijtmans Exp $ */ #include "tclWinInt.h" @@ -1503,7 +1503,7 @@ TclWinOpenSerialChannel( * are shared between multiple channels (stdin/stdout). */ - wsprintfA(channelName, "file%lx", (int) infoPtr); + sprintf(channelName, "file%Ix", (size_t) infoPtr); infoPtr->channel = Tcl_CreateChannel(&serialChannelType, channelName, infoPtr, permissions); |