diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-03 14:57:41 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-03 14:57:41 -0700 | 
| commit | e1d7e7fcf8625857de6b48975096c127e5cb1534 (patch) | |
| tree | 50cea917139bb677b3e7492e162d0048936e6848 /net/sctp/tsnmap.c | |
| parent | 3ff42e4f13095f5351fe651b8a591e67aabbb1a6 (diff) | |
| parent | 49ff4bb4cd4c04acf8f9e3d3ec2148305a1db445 (diff) | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
  [TCP]: DSACK signals data receival, be conservative
  [TCP]: Also handle snd_una changes in tcp_cwnd_down
  [TIPC]: Fix two minor sparse warnings.
  [TIPC]: Make function tipc_nameseq_subscribe static.
  [PF_KEY]: Fix ipsec not working in 2.6.23-rc1-git10
  [TCP]: Invoke tcp_sendmsg() directly, do not use inet_sendmsg().
  [IPV4] route.c: mostly kmalloc + memset conversion to k[cz]alloc
  [IPV4] raw.c: kmalloc + memset conversion to kzalloc
  [NETFILTER] nf_conntrack_l3proto_ipv4_compat.c: kmalloc + memset conversion to kzalloc
  [NETFILTER] nf_conntrack_expect.c: kmalloc + memset conversion to kzalloc
  [NET]: Removal of duplicated include net/wanrouter/wanmain.c
  SCTP: remove useless code in function sctp_init_cause
  SCTP: drop SACK if ctsn is not less than the next tsn of assoc
  SCTP: IPv4 mapped addr not returned in SCTPv6 accept()
  SCTP: IPv4 mapped addr not returned in SCTPv6 accept()
  sctp: fix shadow symbol in net/sctp/tsnmap.c
  sctp: try to fix readlock
  sctp: remove shadowed symbols
  sctp: move global declaration to header file.
  sctp: make locally used function static
Diffstat (limited to 'net/sctp/tsnmap.c')
| -rw-r--r-- | net/sctp/tsnmap.c | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c index d3192a1babc..1ff0daade30 100644 --- a/net/sctp/tsnmap.c +++ b/net/sctp/tsnmap.c @@ -161,7 +161,7 @@ SCTP_STATIC int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map,  					 __u16 *start, __u16 *end)  {  	int started, ended; -	__u16 _start, _end, offset; +	__u16 start_, end_, offset;  	/* We haven't found a gap yet.  */  	started = ended = 0; @@ -175,7 +175,7 @@ SCTP_STATIC int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map,  		offset = iter->start - map->base_tsn;  		sctp_tsnmap_find_gap_ack(map->tsn_map, offset, map->len, 0, -					 &started, &_start, &ended, &_end); +					 &started, &start_, &ended, &end_);  	}  	/* Do we need to check the overflow map? */ @@ -193,8 +193,8 @@ SCTP_STATIC int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map,  					 offset,  					 map->len,  					 map->len, -					 &started, &_start, -					 &ended, &_end); +					 &started, &start_, +					 &ended, &end_);  	}  	/* The Gap Ack Block happens to end at the end of the @@ -202,7 +202,7 @@ SCTP_STATIC int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map,  	 */  	if (started && !ended) {  		ended++; -		_end = map->len + map->len - 1; +		end_ = map->len + map->len - 1;  	}  	/* If we found a Gap Ack Block, return the start and end and @@ -215,8 +215,8 @@ SCTP_STATIC int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map,  		int gap = map->cumulative_tsn_ack_point -  			map->base_tsn; -		*start = _start - gap; -		*end = _end - gap; +		*start = start_ - gap; +		*end = end_ - gap;  		/* Move the iterator forward.  */  		iter->start = map->cumulative_tsn_ack_point + *end + 1;  | 
