summaryrefslogtreecommitdiffstats
path: root/generic/tclIOSock.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-11-07 15:12:26 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-11-07 15:12:26 (GMT)
commitf3f11c1b443e594cd1abdec73ee15b97de6cb366 (patch)
tree82ae89d1febc068bc2d749ddfb8d58b23e109da3 /generic/tclIOSock.c
parent4462e6df57892c5bb60de231e237e45a9b57be39 (diff)
downloadtcl-f3f11c1b443e594cd1abdec73ee15b97de6cb366.zip
tcl-f3f11c1b443e594cd1abdec73ee15b97de6cb366.tar.gz
tcl-f3f11c1b443e594cd1abdec73ee15b97de6cb366.tar.bz2
ANSIfy
Diffstat (limited to 'generic/tclIOSock.c')
-rw-r--r--generic/tclIOSock.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c
index 366d0ab..69e2351 100644
--- a/generic/tclIOSock.c
+++ b/generic/tclIOSock.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: tclIOSock.c,v 1.9 2005/07/19 22:45:35 dkf Exp $
+ * RCS: @(#) $Id: tclIOSock.c,v 1.10 2005/11/07 15:17:25 dkf Exp $
*/
#include "tclInt.h"
@@ -33,11 +33,11 @@
*/
int
-TclSockGetPort(interp, string, proto, portPtr)
- Tcl_Interp *interp;
- char *string; /* Integer or service name */
- char *proto; /* "tcp" or "udp", typically */
- int *portPtr; /* Return port number */
+TclSockGetPort(
+ Tcl_Interp *interp,
+ char *string, /* Integer or service name */
+ char *proto, /* "tcp" or "udp", typically */
+ int *portPtr) /* Return port number */
{
struct servent *sp; /* Protocol info for named services */
Tcl_DString ds;
@@ -61,7 +61,7 @@ TclSockGetPort(interp, string, proto, portPtr)
}
if (*portPtr > 0xFFFF) {
Tcl_AppendResult(interp, "couldn't open socket: port number too high",
- (char *) NULL);
+ NULL);
return TCL_ERROR;
}
return TCL_OK;
@@ -84,9 +84,9 @@ TclSockGetPort(interp, string, proto, portPtr)
*/
int
-TclSockMinimumBuffers(sock, size)
- int sock; /* Socket file descriptor */
- int size; /* Minimum buffer size */
+TclSockMinimumBuffers(
+ int sock, /* Socket file descriptor */
+ int size) /* Minimum buffer size */
{
int current;
socklen_t len;