diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:27:15 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:27:15 -0500 |
commit | 34bcca28335977e969338c98c6c43a1e08f592b2 (patch) | |
tree | 1cc060c90ef84df109fac0ae3ff5fba82e164a17 /net/sctp/sm_make_chunk.c | |
parent | 2178eda82616566b7397791afa6e5487990bac8e (diff) |
[SCTP]: Even more trivial sctp annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 51cab806abd8..988745272458 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -1472,10 +1472,10 @@ no_hmac: | |||
1472 | suseconds_t usecs = (tv.tv_sec - | 1472 | suseconds_t usecs = (tv.tv_sec - |
1473 | bear_cookie->expiration.tv_sec) * 1000000L + | 1473 | bear_cookie->expiration.tv_sec) * 1000000L + |
1474 | tv.tv_usec - bear_cookie->expiration.tv_usec; | 1474 | tv.tv_usec - bear_cookie->expiration.tv_usec; |
1475 | __be32 n = htonl(usecs); | ||
1475 | 1476 | ||
1476 | usecs = htonl(usecs); | ||
1477 | sctp_init_cause(*errp, SCTP_ERROR_STALE_COOKIE, | 1477 | sctp_init_cause(*errp, SCTP_ERROR_STALE_COOKIE, |
1478 | &usecs, sizeof(usecs)); | 1478 | &n, sizeof(n)); |
1479 | *error = -SCTP_IERROR_STALE_COOKIE; | 1479 | *error = -SCTP_IERROR_STALE_COOKIE; |
1480 | } else | 1480 | } else |
1481 | *error = -SCTP_IERROR_NOMEM; | 1481 | *error = -SCTP_IERROR_NOMEM; |