summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2007-11-28 13:33:27 +0000
committerbz <bz@FreeBSD.org>2007-11-28 13:33:27 +0000
commit621536d5d9c65a709d234562d0458a3adcfc7bcb (patch)
treef0281c7ff229194d3bb485002169b5227bf305de /sys/netinet/tcp_output.c
parent373ab6f7ab883fb6e0d82e3dd5d962e09484e866 (diff)
downloadFreeBSD-src-621536d5d9c65a709d234562d0458a3adcfc7bcb.zip
FreeBSD-src-621536d5d9c65a709d234562d0458a3adcfc7bcb.tar.gz
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
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index a63e1bb..64a95a5 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;
OpenPOWER on IntegriCloud