mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-13 14:48:33 -04:00
Start to remove unnecessary 'signed char *' casts from strings that are now just plain char * types.
This commit is contained in:
parent
b4116a7c7d
commit
da93f1fc4b
261 changed files with 2822 additions and 2815 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
|
||||
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
|
||||
All rights reserved
|
||||
|
||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
||||
|
@ -63,11 +63,11 @@
|
|||
1 tab == 4 spaces!
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
* Very simple task that responds with a single WEB page to http requests.
|
||||
*
|
||||
* The WEB page displays task and system status. A semaphore is used to
|
||||
* wake the task when there is processing to perform as determined by the
|
||||
* The WEB page displays task and system status. A semaphore is used to
|
||||
* wake the task when there is processing to perform as determined by the
|
||||
* interrupts generated by the Ethernet interface.
|
||||
*/
|
||||
|
||||
|
@ -131,7 +131,7 @@ static void prvHTTPInit( void );
|
|||
static void prvNetifInit( void );
|
||||
|
||||
/*
|
||||
* Generate the dynamic components of the served WEB page and transmit the
|
||||
* Generate the dynamic components of the served WEB page and transmit the
|
||||
* entire page through the socket.
|
||||
*/
|
||||
static void prvTransmitHTTP( unsigned char socket );
|
||||
|
@ -181,17 +181,17 @@ unsigned char ucState;
|
|||
|
||||
if( ( sLen = select( i, SEL_RECV ) ) > 0 )
|
||||
{
|
||||
if( sLen > httpSOCKET_BUFFER_SIZE )
|
||||
if( sLen > httpSOCKET_BUFFER_SIZE )
|
||||
{
|
||||
sLen = httpSOCKET_BUFFER_SIZE;
|
||||
}
|
||||
|
||||
disable();
|
||||
|
||||
sLen = recv( i, ucSocketBuffer, sLen );
|
||||
|
||||
sLen = recv( i, ucSocketBuffer, sLen );
|
||||
|
||||
if( ucConnection[ i ] == 1 )
|
||||
{
|
||||
{
|
||||
/* This is our first time processing a HTTP
|
||||
request on this connection. */
|
||||
prvTransmitHTTP( i );
|
||||
|
@ -245,7 +245,7 @@ static void prvNetifInit( void )
|
|||
/* See definition of 'sysinit' in socket.c
|
||||
- 8 KB transmit buffer, and 8 KB receive buffer available. These buffers
|
||||
are shared by all 4 channels.
|
||||
- (0x55, 0x55) configures the send and receive buffers at
|
||||
- (0x55, 0x55) configures the send and receive buffers at
|
||||
httpSOCKET_BUFFER_SIZE bytes for each of the 4 channels. */
|
||||
sysinit( 0x55, 0x55 );
|
||||
}
|
||||
|
@ -260,7 +260,7 @@ extern short usCheckStatus;
|
|||
send( socket, ( unsigned char * ) HTML_OUTPUT_BEGIN, strlen( HTML_OUTPUT_BEGIN ) );
|
||||
|
||||
/* Generate then send the table showing the status of each task. */
|
||||
vTaskList( ucSocketBuffer );
|
||||
vTaskList( ( char * ) ucSocketBuffer );
|
||||
send( socket, ( unsigned char * ) ucSocketBuffer, strlen( ucSocketBuffer ) );
|
||||
|
||||
/* Send the number of times the idle task has looped. */
|
||||
|
@ -271,7 +271,7 @@ extern short usCheckStatus;
|
|||
sprintf( ucSocketBuffer, "The tick count is 0x%08lx<br>", xTaskGetTickCount() );
|
||||
send( socket, ( unsigned char * ) ucSocketBuffer, strlen( ucSocketBuffer ) );
|
||||
|
||||
/* Show a message indicating whether or not the check task has discovered
|
||||
/* Show a message indicating whether or not the check task has discovered
|
||||
an error in any of the standard demo tasks. */
|
||||
if( usCheckStatus == 0 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue