summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2002-05-13 14:06:21 (GMT)
committerdkf <dkf@noemail.net>2002-05-13 14:06:21 (GMT)
commit5c4f3b87025c19f28dd29ad26b1f62b44d7e4df6 (patch)
tree8436c2e0cbc3456d1c8b6c101eda67413cf30838 /unix/tclUnixChan.c
parent633de7377a2e574b004f21f4743d2a8e038848d6 (diff)
downloadtcl-5c4f3b87025c19f28dd29ad26b1f62b44d7e4df6.zip
tcl-5c4f3b87025c19f28dd29ad26b1f62b44d7e4df6.tar.gz
tcl-5c4f3b87025c19f28dd29ad26b1f62b44d7e4df6.tar.bz2
Stop Solaris from generating a warning; the second argument to ioctl has been
observed to be either signed (Solaris) or unsigned (Linux)... FossilOrigin-Name: 49996f43a2f402a36e8e303d60c2462dc009e773
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index a77cf22..dd9a3b3 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.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: tclUnixChan.c,v 1.32 2002/03/05 20:55:36 hobbs Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.33 2002/05/13 14:06:22 dkf Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -82,7 +82,11 @@
# endif
# if defined(TIOCSBRK) && defined(TIOCCBRK)
# define SETBREAK(fd, flag) \
- ioctl((fd), (unsigned) ((flag) ? TIOCSBRK:TIOCCBRK), NULL)
+ if (flag) { \
+ ioctl((fd), TIOCSBRK, NULL);\
+ } else { \
+ ioctl((fd), TIOCCBRK, NULL);\
+ }
# endif
# if !defined(CRTSCTS) && defined(CNEW_RTSCTS)
# define CRTSCTS CNEW_RTSCTS