aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-04-15 01:58:06 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-15 12:44:40 -0400
commit95c961747284a6b83a5e2d81240e214b0fa3464d (patch)
treec7be86a00db3605a48a03109fafcbe31039ca2e0 /net/sctp
parent5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff)
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/associola.c4
-rw-r--r--net/sctp/output.c4
-rw-r--r--net/sctp/outqueue.c2
-rw-r--r--net/sctp/sm_sideeffect.c4
-rw-r--r--net/sctp/sm_statefuns.c4
5 files changed, 9 insertions, 9 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index acd2edbc073e..5bc9ab161b37 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1408,7 +1408,7 @@ static inline int sctp_peer_needs_update(struct sctp_association *asoc)
1408} 1408}
1409 1409
1410/* Increase asoc's rwnd by len and send any window update SACK if needed. */ 1410/* Increase asoc's rwnd by len and send any window update SACK if needed. */
1411void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned len) 1411void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned int len)
1412{ 1412{
1413 struct sctp_chunk *sack; 1413 struct sctp_chunk *sack;
1414 struct timer_list *timer; 1414 struct timer_list *timer;
@@ -1465,7 +1465,7 @@ void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned len)
1465} 1465}
1466 1466
1467/* Decrease asoc's rwnd by len. */ 1467/* Decrease asoc's rwnd by len. */
1468void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned len) 1468void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned int len)
1469{ 1469{
1470 int rx_count; 1470 int rx_count;
1471 int over = 0; 1471 int over = 0;
diff --git a/net/sctp/output.c b/net/sctp/output.c
index 817174eb5f41..69534c5f8afa 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -663,8 +663,8 @@ static sctp_xmit_t sctp_packet_can_append_data(struct sctp_packet *packet,
663 */ 663 */
664 if (!sctp_sk(asoc->base.sk)->nodelay && sctp_packet_empty(packet) && 664 if (!sctp_sk(asoc->base.sk)->nodelay && sctp_packet_empty(packet) &&
665 inflight && sctp_state(asoc, ESTABLISHED)) { 665 inflight && sctp_state(asoc, ESTABLISHED)) {
666 unsigned max = transport->pathmtu - packet->overhead; 666 unsigned int max = transport->pathmtu - packet->overhead;
667 unsigned len = chunk->skb->len + q->out_qlen; 667 unsigned int len = chunk->skb->len + q->out_qlen;
668 668
669 /* Check whether this chunk and all the rest of pending 669 /* Check whether this chunk and all the rest of pending
670 * data will fit or delay in hopes of bundling a full 670 * data will fit or delay in hopes of bundling a full
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index cfeb1d4a1ee6..a0fa19f5650c 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -1147,7 +1147,7 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_sackhdr *sack)
1147 __u32 sack_ctsn, ctsn, tsn; 1147 __u32 sack_ctsn, ctsn, tsn;
1148 __u32 highest_tsn, highest_new_tsn; 1148 __u32 highest_tsn, highest_new_tsn;
1149 __u32 sack_a_rwnd; 1149 __u32 sack_a_rwnd;
1150 unsigned outstanding; 1150 unsigned int outstanding;
1151 struct sctp_transport *primary = asoc->peer.primary_path; 1151 struct sctp_transport *primary = asoc->peer.primary_path;
1152 int count_of_newacks = 0; 1152 int count_of_newacks = 0;
1153 int gap_ack_blocks; 1153 int gap_ack_blocks;
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 1ff51c9d18d5..fbb374c65945 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -524,7 +524,7 @@ static void sctp_do_8_2_transport_strike(struct sctp_association *asoc,
524/* Worker routine to handle INIT command failure. */ 524/* Worker routine to handle INIT command failure. */
525static void sctp_cmd_init_failed(sctp_cmd_seq_t *commands, 525static void sctp_cmd_init_failed(sctp_cmd_seq_t *commands,
526 struct sctp_association *asoc, 526 struct sctp_association *asoc,
527 unsigned error) 527 unsigned int error)
528{ 528{
529 struct sctp_ulpevent *event; 529 struct sctp_ulpevent *event;
530 530
@@ -550,7 +550,7 @@ static void sctp_cmd_assoc_failed(sctp_cmd_seq_t *commands,
550 sctp_event_t event_type, 550 sctp_event_t event_type,
551 sctp_subtype_t subtype, 551 sctp_subtype_t subtype,
552 struct sctp_chunk *chunk, 552 struct sctp_chunk *chunk,
553 unsigned error) 553 unsigned int error)
554{ 554{
555 struct sctp_ulpevent *event; 555 struct sctp_ulpevent *event;
556 556
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index 891f5db8cc31..a147b4d307d2 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -2410,7 +2410,7 @@ static sctp_disposition_t __sctp_sf_do_9_1_abort(const struct sctp_endpoint *ep,
2410 sctp_cmd_seq_t *commands) 2410 sctp_cmd_seq_t *commands)
2411{ 2411{
2412 struct sctp_chunk *chunk = arg; 2412 struct sctp_chunk *chunk = arg;
2413 unsigned len; 2413 unsigned int len;
2414 __be16 error = SCTP_ERROR_NO_ERROR; 2414 __be16 error = SCTP_ERROR_NO_ERROR;
2415 2415
2416 /* See if we have an error cause code in the chunk. */ 2416 /* See if we have an error cause code in the chunk. */
@@ -2446,7 +2446,7 @@ sctp_disposition_t sctp_sf_cookie_wait_abort(const struct sctp_endpoint *ep,
2446 sctp_cmd_seq_t *commands) 2446 sctp_cmd_seq_t *commands)
2447{ 2447{
2448 struct sctp_chunk *chunk = arg; 2448 struct sctp_chunk *chunk = arg;
2449 unsigned len; 2449 unsigned int len;
2450 __be16 error = SCTP_ERROR_NO_ERROR; 2450 __be16 error = SCTP_ERROR_NO_ERROR;
2451 2451
2452 if (!sctp_vtag_verify_either(chunk, asoc)) 2452 if (!sctp_vtag_verify_either(chunk, asoc))