diff options
author | ka153516 <none@none> | 2006-06-13 09:35:26 -0700 |
---|---|---|
committer | ka153516 <none@none> | 2006-06-13 09:35:26 -0700 |
commit | 7bf089c29b4cf2f5a635f0a49eef7b5ccd0eb75e (patch) | |
tree | 4cf31129ee4717f67e54822f7a29dfddbed27df9 /usr/src/uts/common/inet/tcp/tcp.c | |
parent | 8a9cd9e488b54c1dcc9772a6156188c15bb0eb92 (diff) | |
download | illumos-joyent-7bf089c29b4cf2f5a635f0a49eef7b5ccd0eb75e.tar.gz |
6407401 specweb is haning on Nevada when compiled with SunStudio 11
Diffstat (limited to 'usr/src/uts/common/inet/tcp/tcp.c')
-rw-r--r-- | usr/src/uts/common/inet/tcp/tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/inet/tcp/tcp.c b/usr/src/uts/common/inet/tcp/tcp.c index ef16cee548..17a35961d8 100644 --- a/usr/src/uts/common/inet/tcp/tcp.c +++ b/usr/src/uts/common/inet/tcp/tcp.c @@ -26,9 +26,9 @@ /* Copyright (c) 1990 Mentat Inc. */ #pragma ident "%Z%%M% %I% %E% SMI" - const char tcp_version[] = "%Z%%M% %I% %E% SMI"; + #include <sys/types.h> #include <sys/stream.h> #include <sys/strsun.h> @@ -18613,7 +18613,7 @@ data_null: */ goto done; } else { - int usable_r = tcp->tcp_swnd; + int usable_r; /* * In the special case when cwnd is zero, which can only @@ -18632,8 +18632,8 @@ data_null: } /* NOTE: trouble if xmitting while SYN not acked? */ - usable_r -= snxt; - usable_r += tcp->tcp_suna; + usable_r = snxt - tcp->tcp_suna; + usable_r = tcp->tcp_swnd - usable_r; /* * Check if the receiver has shrunk the window. If |