diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-12-10 12:39:29 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-11 17:34:59 -0500 |
commit | 1fba78b6cba14bd37fdb12c5367f1e4d58ff2e0f (patch) | |
tree | dc606497372ac469f698fa2a31d956a67a62d739 /net/dccp/ccids/ccid3.h | |
parent | 9e8efc824098c241a1cde81f5558d222cb6f9369 (diff) |
[DCCP] ccid3: Fixup some type conversions related to rtts
Spotted by David Miller when compiling on sparc64, I reproduced it here on
parisc64, that are the only platforms to define __kernel_suseconds_t as an
'int', all the others, x86_64 and x86 included typedef it as a 'long', but from
the definition of suseconds_t it should just be an 'int' on platforms where it
is >= 32bits, it would not require all the castings from suseconds_t to (int)
when printking variables of this type, that are not needed on parisc64 and
sparc64.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/ccids/ccid3.h')
-rw-r--r-- | net/dccp/ccids/ccid3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index 3fa0f69ed320..3e3a9cc69b10 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
@@ -52,12 +52,12 @@ | |||
52 | #define TFRC_T_MBI 64 | 52 | #define TFRC_T_MBI 64 |
53 | 53 | ||
54 | /* What we think is a reasonable upper limit on RTT values */ | 54 | /* What we think is a reasonable upper limit on RTT values */ |
55 | #define CCID3_SANE_RTT_MAX (4 * USEC_PER_SEC) | 55 | #define CCID3_SANE_RTT_MAX ((suseconds_t)(4 * USEC_PER_SEC)) |
56 | 56 | ||
57 | #define CCID3_RTT_SANITY_CHECK(rtt) do { \ | 57 | #define CCID3_RTT_SANITY_CHECK(rtt) do { \ |
58 | if (rtt > CCID3_SANE_RTT_MAX) { \ | 58 | if (rtt > CCID3_SANE_RTT_MAX) { \ |
59 | DCCP_CRIT("RTT (%ld) too large, substituting %ld", \ | 59 | DCCP_CRIT("RTT (%d) too large, substituting %d", \ |
60 | rtt, CCID3_SANE_RTT_MAX); \ | 60 | (int)rtt, (int)CCID3_SANE_RTT_MAX); \ |
61 | rtt = CCID3_SANE_RTT_MAX; \ | 61 | rtt = CCID3_SANE_RTT_MAX; \ |
62 | } } while (0) | 62 | } } while (0) |
63 | 63 | ||