mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
FreeTCPIP - remove compiler warnings.
This commit is contained in:
parent
f43bd20a6d
commit
5f95494dff
|
@ -96,6 +96,8 @@ static PT_THREAD( send_file ( struct httpd_state *s ) )
|
||||||
{
|
{
|
||||||
PSOCK_BEGIN( &s->sout );
|
PSOCK_BEGIN( &s->sout );
|
||||||
|
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
PSOCK_GENERATOR_SEND( &s->sout, generate_part_of_file, s );
|
PSOCK_GENERATOR_SEND( &s->sout, generate_part_of_file, s );
|
||||||
|
@ -110,6 +112,7 @@ static PT_THREAD( send_file ( struct httpd_state *s ) )
|
||||||
static PT_THREAD( send_part_of_file ( struct httpd_state *s ) )
|
static PT_THREAD( send_part_of_file ( struct httpd_state *s ) )
|
||||||
{
|
{
|
||||||
PSOCK_BEGIN( &s->sout );
|
PSOCK_BEGIN( &s->sout );
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
|
|
||||||
PSOCK_SEND( &s->sout, s->file.data, s->len );
|
PSOCK_SEND( &s->sout, s->file.data, s->len );
|
||||||
|
|
||||||
|
@ -131,7 +134,7 @@ static PT_THREAD( handle_script ( struct httpd_state *s ) )
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
PT_BEGIN( &s->scriptpt );
|
PT_BEGIN( &s->scriptpt );
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
while( s->file.len > 0 )
|
while( s->file.len > 0 )
|
||||||
{
|
{
|
||||||
/* Check if we should start executing a script. */
|
/* Check if we should start executing a script. */
|
||||||
|
@ -202,7 +205,7 @@ static PT_THREAD( send_headers ( struct httpd_state *s, const char *statushdr )
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
PSOCK_BEGIN( &s->sout );
|
PSOCK_BEGIN( &s->sout );
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
PSOCK_SEND_STR( &s->sout, statushdr );
|
PSOCK_SEND_STR( &s->sout, statushdr );
|
||||||
|
|
||||||
ptr = strrchr( s->filename, ISO_period );
|
ptr = strrchr( s->filename, ISO_period );
|
||||||
|
@ -244,7 +247,7 @@ static PT_THREAD( handle_output ( struct httpd_state *s ) )
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
PT_BEGIN( &s->outputpt );
|
PT_BEGIN( &s->outputpt );
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
if( !httpd_fs_open(s->filename, &s->file) )
|
if( !httpd_fs_open(s->filename, &s->file) )
|
||||||
{
|
{
|
||||||
httpd_fs_open( http_404_html, &s->file );
|
httpd_fs_open( http_404_html, &s->file );
|
||||||
|
@ -275,7 +278,7 @@ static PT_THREAD( handle_output ( struct httpd_state *s ) )
|
||||||
static PT_THREAD( handle_input ( struct httpd_state *s ) )
|
static PT_THREAD( handle_input ( struct httpd_state *s ) )
|
||||||
{
|
{
|
||||||
PSOCK_BEGIN( &s->sin );
|
PSOCK_BEGIN( &s->sin );
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
PSOCK_READTO( &s->sin, ISO_space );
|
PSOCK_READTO( &s->sin, ISO_space );
|
||||||
|
|
||||||
if( strncmp(s->inputbuf, http_get, 4) != 0 )
|
if( strncmp(s->inputbuf, http_get, 4) != 0 )
|
||||||
|
|
|
@ -17,3 +17,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __ICCRX__
|
||||||
|
;
|
||||||
|
#pragma pack()
|
||||||
|
#endif
|
||||||
|
|
|
@ -19,3 +19,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __ICCRX__
|
||||||
|
#pragma pack(1)
|
||||||
|
#endif
|
||||||
|
|
|
@ -1017,7 +1017,7 @@ CCIF void uip_send( const void *data, int len );
|
||||||
* \hideinitializer
|
* \hideinitializer
|
||||||
*/
|
*/
|
||||||
#ifndef uip_ipaddr_copy
|
#ifndef uip_ipaddr_copy
|
||||||
#define uip_ipaddr_copy( dest, src ) ( *(dest) = *(src) )
|
#define uip_ipaddr_copy( dest, src ) ( ((unsigned long*)dest)[ 0 ] = ((unsigned long *)src)[ 0 ] )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1635,7 +1635,6 @@ struct uip_tcpip_hdr
|
||||||
u8_t urgp[2];
|
u8_t urgp[2];
|
||||||
u8_t optdata[4];
|
u8_t optdata[4];
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "net/pack_struct_end.h"
|
#include "net/pack_struct_end.h"
|
||||||
|
|
||||||
/* The ICMP and IP headers. */
|
/* The ICMP and IP headers. */
|
||||||
|
|
|
@ -178,7 +178,7 @@ PT_THREAD(psock_send(register struct psock *s, const char *buf,
|
||||||
unsigned int len))
|
unsigned int len))
|
||||||
{
|
{
|
||||||
PT_BEGIN(&s->psockpt);
|
PT_BEGIN(&s->psockpt);
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
/* If there is no data to send, we exit immediately. */
|
/* If there is no data to send, we exit immediately. */
|
||||||
if(len == 0) {
|
if(len == 0) {
|
||||||
PT_EXIT(&s->psockpt);
|
PT_EXIT(&s->psockpt);
|
||||||
|
@ -217,7 +217,7 @@ PT_THREAD(psock_generator_send(register struct psock *s,
|
||||||
unsigned short (*generate)(void *), void *arg))
|
unsigned short (*generate)(void *), void *arg))
|
||||||
{
|
{
|
||||||
PT_BEGIN(&s->psockpt);
|
PT_BEGIN(&s->psockpt);
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
/* Ensure that there is a generator function to call. */
|
/* Ensure that there is a generator function to call. */
|
||||||
if(generate == NULL) {
|
if(generate == NULL) {
|
||||||
PT_EXIT(&s->psockpt);
|
PT_EXIT(&s->psockpt);
|
||||||
|
@ -273,7 +273,7 @@ psock_newdata(struct psock *s)
|
||||||
PT_THREAD(psock_readto(register struct psock *psock, unsigned char c))
|
PT_THREAD(psock_readto(register struct psock *psock, unsigned char c))
|
||||||
{
|
{
|
||||||
PT_BEGIN(&psock->psockpt);
|
PT_BEGIN(&psock->psockpt);
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
buf_setup(&psock->buf, (unsigned char*)psock->bufptr, psock->bufsize);
|
buf_setup(&psock->buf, (unsigned char*)psock->bufptr, psock->bufsize);
|
||||||
|
|
||||||
/* XXX: Should add buf_checkmarker() before do{} loop, if
|
/* XXX: Should add buf_checkmarker() before do{} loop, if
|
||||||
|
@ -300,7 +300,7 @@ PT_THREAD(psock_readto(register struct psock *psock, unsigned char c))
|
||||||
PT_THREAD(psock_readbuf(register struct psock *psock))
|
PT_THREAD(psock_readbuf(register struct psock *psock))
|
||||||
{
|
{
|
||||||
PT_BEGIN(&psock->psockpt);
|
PT_BEGIN(&psock->psockpt);
|
||||||
|
( void ) PT_YIELD_FLAG;
|
||||||
buf_setup(&psock->buf, (unsigned char * ) psock->bufptr, psock->bufsize);
|
buf_setup(&psock->buf, (unsigned char * ) psock->bufptr, psock->bufsize);
|
||||||
|
|
||||||
/* XXX: Should add buf_checkmarker() before do{} loop, if
|
/* XXX: Should add buf_checkmarker() before do{} loop, if
|
||||||
|
|
|
@ -105,7 +105,6 @@ struct arp_entry
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct uip_eth_addr broadcast_ethaddr = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } };
|
static const struct uip_eth_addr broadcast_ethaddr = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } };
|
||||||
static const u16_t broadcast_ipaddr[2] = { 0xffff, 0xffff };
|
|
||||||
|
|
||||||
static struct arp_entry arp_table[UIP_ARPTAB_SIZE];
|
static struct arp_entry arp_table[UIP_ARPTAB_SIZE];
|
||||||
static uip_ipaddr_t ipaddr;
|
static uip_ipaddr_t ipaddr;
|
||||||
|
|
Loading…
Reference in a new issue