From 32ff04663957ed2ca386172a534a0d8a1a6dfc4d Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Sat, 14 Feb 2004 21:49:48 +0000 Subject: [PATCH] Final brucification pass. Spell types consistently (u_int). Remove bogus casts. Remove unnecessary parenthesis. Submitted by: bde --- sys/netinet/tcp_subr.c | 2 +- sys/netinet/tcp_syncache.c | 2 +- sys/netinet/tcp_timewait.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 7feefdc61cde..faaf00a0fe7e 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1929,7 +1929,7 @@ static int tcp_signature_apply(void *fstate, void *data, u_int len) { - MD5Update((MD5_CTX *)fstate, (unsigned char *)data, (unsigned int)len); + MD5Update(fstate, (u_char *)data, len); return (0); } diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index d2ed8fc6c8ca..9e5f8f2d4da8 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -1101,7 +1101,7 @@ syncache_respond(sc, m) ((sc->sc_flags & SCF_CC) ? TCPOLEN_CC_APPA * 2 : 0); #ifdef TCP_SIGNATURE optlen += (sc->sc_flags & SCF_SIGNATURE) ? - (TCPOLEN_SIGNATURE + 2) : 0; + TCPOLEN_SIGNATURE + 2 : 0; #endif } tlen = hlen + sizeof(struct tcphdr) + optlen; diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 7feefdc61cde..faaf00a0fe7e 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -1929,7 +1929,7 @@ static int tcp_signature_apply(void *fstate, void *data, u_int len) { - MD5Update((MD5_CTX *)fstate, (unsigned char *)data, (unsigned int)len); + MD5Update(fstate, (u_char *)data, len); return (0); }