Index: tlsBIO.c ================================================================== --- tlsBIO.c +++ tlsBIO.c @@ -36,15 +36,11 @@ static int BioPuts _ANSI_ARGS_ ((BIO *h, CONST char *str)); static long BioCtrl _ANSI_ARGS_ ((BIO *h, int cmd, long arg1, void *ptr)); static int BioNew _ANSI_ARGS_ ((BIO *h)); static int BioFree _ANSI_ARGS_ ((BIO *h)); -BIO * -BIO_new_tcl(statePtr, flags) - State *statePtr; - int flags; -{ +BIO * BIO_new_tcl(State *statePtr, int flags) { BIO *bio; static BIO_METHOD *BioMethods = NULL; dprintf("BIO_new_tcl() called"); @@ -65,16 +61,11 @@ BIO_set_shutdown(bio, flags); return bio; } -static int -BioWrite (bio, buf, bufLen) - BIO *bio; - CONST char *buf; - int bufLen; -{ +static int BioWrite(BIO *bio, CONST char *buf, int bufLen) { Tcl_Channel chan = Tls_GetParent((State*)BIO_get_data(bio)); int ret; dprintf("BioWrite(%p, , %d) [%p]", (void *) bio, bufLen, (void *) chan); @@ -100,16 +91,11 @@ BIO_set_retry_read(bio); } return ret; } -static int -BioRead (bio, buf, bufLen) - BIO *bio; - char *buf; - int bufLen; -{ +static int BioRead(BIO *bio, char *buf, int bufLen) { Tcl_Channel chan = Tls_GetParent((State*)BIO_get_data(bio)); int ret = 0; int tclEofChan; dprintf("BioRead(%p, , %d) [%p]", (void *) bio, bufLen, (void *) chan); @@ -147,26 +133,16 @@ dprintf("BioRead(%p, , %d) [%p] returning %i", (void *) bio, bufLen, (void *) chan, ret); return ret; } -static int -BioPuts (bio, str) - BIO *bio; - CONST char *str; -{ +static int BioPuts(BIO *bio, CONST char *str) { dprintf("BioPuts(%p, ) called", bio, str); return BioWrite(bio, str, (int) strlen(str)); } -static long -BioCtrl (bio, cmd, num, ptr) - BIO *bio; - int cmd; - long num; - void *ptr; -{ +static long BioCtrl(BIO *bio, int cmd, long num, void *ptr) { Tcl_Channel chan = Tls_GetParent((State*)BIO_get_data(bio)); long ret = 1; dprintf("BioCtrl(%p, 0x%x, 0x%x, %p)", (void *) bio, (unsigned int) cmd, (unsigned int) num, @@ -223,28 +199,21 @@ break; } return(ret); } -static int -BioNew (bio) - BIO *bio; -{ - +static int BioNew(BIO *bio) { dprintf("BioNew(%p) called", bio); BIO_set_init(bio, 0); BIO_set_data(bio, NULL); BIO_clear_flags(bio, -1); return 1; } -static int -BioFree (bio) - BIO *bio; -{ +static int BioFree(BIO *bio) { if (bio == NULL) { return 0; } dprintf("BioFree(%p) called", bio);