From e6efab5e75a4359cf171db3cde79672fd14ecfbc Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 6 Oct 2004 14:39:20 +0000 Subject: Style fixes --- win/tclWinSock.c | 16 +++++++++++----- 1 file 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 -- cgit v0.12