]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WizNET_DEMO_TERN_186/HTTPTask.c
Start to remove unnecessary 'signed char *' casts from strings that are now just...
[freertos] / FreeRTOS / Demo / WizNET_DEMO_TERN_186 / HTTPTask.c
index b6a167bc8e0137ae0acaeefed4033cfcb1fc6976..87af91a4bb355d4b08f9f1160d4eea92d98e6559 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
     1 tab == 4 spaces!\r
 */\r
 \r
-/* \r
+/*\r
  * Very simple task that responds with a single WEB page to http requests.\r
  *\r
- * The WEB page displays task and system status.  A semaphore is used to \r
- * wake the task when there is processing to perform as determined by the \r
+ * The WEB page displays task and system status.  A semaphore is used to\r
+ * wake the task when there is processing to perform as determined by the\r
  * interrupts generated by the Ethernet interface.\r
  */\r
 \r
@@ -131,7 +131,7 @@ static void prvHTTPInit( void );
 static void prvNetifInit( void );\r
 \r
 /*\r
- * Generate the dynamic components of the served WEB page and transmit the \r
+ * Generate the dynamic components of the served WEB page and transmit the\r
  * entire page through the socket.\r
  */\r
 static void prvTransmitHTTP( unsigned char socket );\r
@@ -181,17 +181,17 @@ unsigned char ucState;
 \r
                                        if( ( sLen = select( i, SEL_RECV ) ) > 0 )\r
                                        {\r
-                                               if( sLen > httpSOCKET_BUFFER_SIZE ) \r
+                                               if( sLen > httpSOCKET_BUFFER_SIZE )\r
                                                {\r
                                                        sLen = httpSOCKET_BUFFER_SIZE;\r
                                                }\r
 \r
                                                disable();\r
-                                               \r
-                                               sLen = recv( i, ucSocketBuffer, sLen );    \r
+\r
+                                               sLen = recv( i, ucSocketBuffer, sLen );\r
 \r
                                                if( ucConnection[ i ] == 1 )\r
-                                               {       \r
+                                               {\r
                                                        /* This is our first time processing a HTTP\r
                                                         request on this connection. */\r
                                                        prvTransmitHTTP( i );\r
@@ -245,7 +245,7 @@ static void prvNetifInit( void )
        /* See definition of 'sysinit' in socket.c\r
         - 8 KB transmit buffer, and 8 KB receive buffer available.  These buffers\r
           are shared by all 4 channels.\r
-        - (0x55, 0x55) configures the send and receive buffers at \r
+        - (0x55, 0x55) configures the send and receive buffers at\r
                httpSOCKET_BUFFER_SIZE bytes for each of the 4 channels. */\r
        sysinit( 0x55, 0x55 );\r
 }\r
@@ -260,7 +260,7 @@ extern short usCheckStatus;
        send( socket, ( unsigned char * ) HTML_OUTPUT_BEGIN, strlen( HTML_OUTPUT_BEGIN ) );\r
 \r
        /* Generate then send the table showing the status of each task. */\r
-       vTaskList( ucSocketBuffer );\r
+       vTaskList( ( char * ) ucSocketBuffer );\r
        send( socket, ( unsigned char * ) ucSocketBuffer, strlen( ucSocketBuffer ) );\r
 \r
        /* Send the number of times the idle task has looped. */\r
@@ -271,7 +271,7 @@ extern short usCheckStatus;
     sprintf( ucSocketBuffer, "The tick count is 0x%08lx<br>", xTaskGetTickCount() );\r
        send( socket, ( unsigned char * ) ucSocketBuffer, strlen( ucSocketBuffer ) );\r
 \r
-       /* Show a message indicating whether or not the check task has discovered \r
+       /* Show a message indicating whether or not the check task has discovered\r
        an error in any of the standard demo tasks. */\r
     if( usCheckStatus == 0 )\r
     {\r