summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-06 14:39:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-06 14:39:20 (GMT)
commite6efab5e75a4359cf171db3cde79672fd14ecfbc (patch)
tree2013796ddda544f1735301e0dc669f661d1657c9
parentfef02ccb49c466401dbf9f765ac5cda88bb370e4 (diff)
downloadtcl-e6efab5e75a4359cf171db3cde79672fd14ecfbc.zip
tcl-e6efab5e75a4359cf171db3cde79672fd14ecfbc.tar.gz
tcl-e6efab5e75a4359cf171db3cde79672fd14ecfbc.tar.bz2
Style fixes
-rw-r--r--win/tclWinSock.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 1477eeb..c732d36 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinSock.c,v 1.43 2004/05/05 18:22:38 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinSock.c,v 1.44 2004/10/06 14:39:20 dkf Exp $
*/
#include "tclWinInt.h"
@@ -2193,7 +2193,9 @@ TcpGetOptionProc(instanceData, interp, optionName, dsPtr)
} else {
Tcl_DStringAppendElement(dsPtr, "0");
}
- if (len > 0) return TCL_OK;
+ if (len > 0) {
+ return TCL_OK;
+ }
}
if (len == 0 || !strncmp(optionName, "-nagle", len)) {
@@ -2211,7 +2213,9 @@ TcpGetOptionProc(instanceData, interp, optionName, dsPtr)
} else {
Tcl_DStringAppendElement(dsPtr, "1");
}
- if (len > 0) return TCL_OK;
+ if (len > 0) {
+ return TCL_OK;
+ }
}
*/
@@ -2692,8 +2696,9 @@ TclpCutSockChannel(chan)
SocketInfo **nextPtrPtr;
int removed = 0;
- if (Tcl_GetChannelType(chan) != &tcpChannelType)
+ if (Tcl_GetChannelType(chan) != &tcpChannelType) {
return;
+ }
/*
* The initializtion of tsdPtr _after_ we have determined that we
@@ -2758,8 +2763,9 @@ TclpSpliceSockChannel(chan)
ThreadSpecificData *tsdPtr;
SocketInfo *infoPtr;
- if (Tcl_GetChannelType(chan) != &tcpChannelType)
+ if (Tcl_GetChannelType(chan) != &tcpChannelType) {
return;
+ }
/*
* Ensure that socket subsystem is initialized in this thread, or