summaryrefslogtreecommitdiffstats
path: root/win/tkWinSend.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-22 14:17:53 (GMT)
committernijtmans <nijtmans>2010-01-22 14:17:53 (GMT)
commit3998cf77ee9513d59f553516618187a6bccb697f (patch)
tree000910596afd8ed4fc7d62d3df7ec8d8b277d252 /win/tkWinSend.c
parent027efdef074cb8c116b5f9c888ad445ea692f654 (diff)
downloadtk-3998cf77ee9513d59f553516618187a6bccb697f.zip
tk-3998cf77ee9513d59f553516618187a6bccb697f.tar.gz
tk-3998cf77ee9513d59f553516618187a6bccb697f.tar.bz2
fix more gcc warnings: missing initializer
Eliminate use of __argc and __argv for CYGWIN Make cygwin configuration error into a warning: CYGWIN compilation works although there still are test failures.
Diffstat (limited to 'win/tkWinSend.c')
-rw-r--r--win/tkWinSend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinSend.c b/win/tkWinSend.c
index a6951af..addcad6 100644
--- a/win/tkWinSend.c
+++ b/win/tkWinSend.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinSend.c,v 1.21 2010/01/13 23:08:11 nijtmans Exp $
+ * RCS: @(#) $Id: tkWinSend.c,v 1.22 2010/01/22 14:17:53 nijtmans Exp $
*/
#include "tkInt.h"
@@ -843,7 +843,7 @@ Win32ErrorObj(
if (lpBuffer == NULL) {
lpBuffer = sBuffer;
- wsprintf(sBuffer, _T("Error Code: %08lX"), hrError);
+ wsprintf(sBuffer, (const char *)_T("Error Code: %08lX"), hrError);
}
if ((p = _tcsrchr(lpBuffer, _T('\r'))) != NULL) {
@@ -1034,7 +1034,7 @@ SendTrace(
static char buffer[1024];
va_start(args, format);
- _vsnprintf(buffer, 1023, format, args);
+ vsnprintf(buffer, 1023, format, args);
OutputDebugString(buffer);
va_end(args);
}