mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-02 19:29:30 +00:00
Removed unused variable (and some whitespaces).
This commit is contained in:
parent
de601c9523
commit
7aa23e002a
@ -29,7 +29,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the "contiki" web browser.
|
* This file is part of the "contiki" web browser.
|
||||||
*
|
*
|
||||||
* $Id: webclient.c,v 1.6 2008/11/09 12:39:31 adamdunkels Exp $
|
* $Id: webclient.c,v 1.7 2008/11/10 21:57:26 oliverschmidt Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -191,8 +191,8 @@ window_copy(int curptr, const char *data, unsigned char datalen)
|
|||||||
len = datalen;
|
len = datalen;
|
||||||
|
|
||||||
/* Trim off data before the window. */
|
/* Trim off data before the window. */
|
||||||
data += windowstart - curptr;
|
data += windowstart - curptr;
|
||||||
len -= windowstart - curptr;
|
len -= windowstart - curptr;
|
||||||
|
|
||||||
/* Trim off data after the window. */
|
/* Trim off data after the window. */
|
||||||
if(len > windowend - windowstart) {
|
if(len > windowend - windowstart) {
|
||||||
@ -203,15 +203,12 @@ window_copy(int curptr, const char *data, unsigned char datalen)
|
|||||||
windowstart += len;
|
windowstart += len;
|
||||||
|
|
||||||
return curptr + datalen;
|
return curptr + datalen;
|
||||||
|
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
senddata(void)
|
senddata(void)
|
||||||
{
|
{
|
||||||
u16_t len;
|
u16_t len;
|
||||||
/* char *getrequest;*/
|
|
||||||
char *cptr;
|
|
||||||
int curptr;
|
int curptr;
|
||||||
|
|
||||||
if(s.getrequestleft > 0) {
|
if(s.getrequestleft > 0) {
|
||||||
@ -234,7 +231,6 @@ senddata(void)
|
|||||||
|
|
||||||
curptr = window_copy(curptr, http_user_agent_fields,
|
curptr = window_copy(curptr, http_user_agent_fields,
|
||||||
(unsigned char)strlen(http_user_agent_fields));
|
(unsigned char)strlen(http_user_agent_fields));
|
||||||
|
|
||||||
|
|
||||||
len = s.getrequestleft > uip_mss()?
|
len = s.getrequestleft > uip_mss()?
|
||||||
uip_mss():
|
uip_mss():
|
||||||
|
Loading…
Reference in New Issue
Block a user