From 4a411b9fcccde39b87596d17e7aa352a77c30664 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 28 Nov 2007 13:33:27 +0000 Subject: [PATCH] Let opt be an array. Though &opt[0] == opt == &opt, &opt is highly confusing and hard to understand so change it to just opt and remove the extra cast no longer/not needed. Discussed with: rwatson MFC after: 3 days --- sys/netinet/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index a63e1bbfa4c6..64a95a5623c7 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -693,7 +693,7 @@ send: #endif /* TCP_SIGNATURE */ /* Processing the options. */ - hdrlen += optlen = tcp_addoptions(&to, (u_char *)&opt); + hdrlen += optlen = tcp_addoptions(&to, opt); #ifdef TCP_SIGNATURE sigoff = to.to_signature - (u_char *)&to;