diff options
author | nijtmans <nijtmans@noemail.net> | 2010-01-29 09:38:47 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2010-01-29 09:38:47 (GMT) |
commit | 2c65218d178dd01247e64c4fb9cf9582e65b4ed5 (patch) | |
tree | b732fbacb9d699666596922795ff884968b67775 /generic/tclTest.c | |
parent | 7da3cd2b9c58064ea501d2339c2e7f21d83e2477 (diff) | |
download | tcl-2c65218d178dd01247e64c4fb9cf9582e65b4ed5.zip tcl-2c65218d178dd01247e64c4fb9cf9582e65b4ed5.tar.gz tcl-2c65218d178dd01247e64c4fb9cf9582e65b4ed5.tar.bz2 |
Use correct TCL_LL_MODIFIER for CYGWIN.
Formatting (all backported from HEAD)
Fix gcc 4.4 warning: ignoring return value of ‘write’,
FossilOrigin-Name: 998a6284726b89d779e45a9dffe5a03d610fc2b3
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index f92c0cd..7320f51 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTest.c,v 1.114.2.4 2009/12/28 13:53:40 dkf Exp $ + * RCS: @(#) $Id: tclTest.c,v 1.114.2.5 2010/01/29 09:38:48 nijtmans Exp $ */ #define TCL_TEST @@ -2212,9 +2212,13 @@ ExitProcOdd( ClientData clientData) /* Integer value to print. */ { char buf[16 + TCL_INTEGER_SPACE]; + size_t len; sprintf(buf, "odd %d\n", PTR2INT(clientData)); - (void)write(1, buf, strlen(buf)); + len = strlen(buf); + if (write(1, buf, len) != len) { + Tcl_Panic("Tcl_FinalizeNotifier: unable to write q to triggerPipe"); + } } static void @@ -2222,9 +2226,13 @@ ExitProcEven( ClientData clientData) /* Integer value to print. */ { char buf[16 + TCL_INTEGER_SPACE]; + size_t len; sprintf(buf, "even %d\n", PTR2INT(clientData)); - (void)write(1, buf, strlen(buf)); + len = strlen(buf); + if (write(1, buf, len) != len) { + Tcl_Panic("Tcl_FinalizeNotifier: unable to write q to triggerPipe"); + } } /* |