Fix TCP echo posix demo warnings (#1031)

* fix warnings

* update naming

* updating +TCP to latest

* review comments fix
This commit is contained in:
Tony Josi 2023-07-17 19:08:42 +05:30 committed by GitHub
parent 69cd9f0b3e
commit 3be041eacb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -227,7 +227,9 @@ void traceOnEnter()
/* clear the buffer */ /* clear the buffer */
char buffer[ 1 ]; char buffer[ 1 ];
read( STDIN_FILENO, &buffer, 1 ); size_t xReadRet;
xReadRet = read( STDIN_FILENO, &buffer, 1 );
( void ) xReadRet;
} }
} }

View file

@ -161,7 +161,9 @@ void main_tcp_echo_client_tasks( void )
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 )
/* Initialise the interface descriptor for WinPCap. */ /* Initialise the interface descriptor for WinPCap. */
pxFillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) ); NetworkInterface_t * pxLinux_FillInterfaceDescriptor( BaseType_t xEMACIndex,
NetworkInterface_t * pxInterface );
pxLinux_FillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
/* === End-point 0 === */ /* === End-point 0 === */
FreeRTOS_FillEndPoint( &( xInterfaces[ 0 ] ), &( xEndPoints [ 0 ] ), ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress ); FreeRTOS_FillEndPoint( &( xInterfaces[ 0 ] ), &( xEndPoints [ 0 ] ), ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );

@ -1 +1 @@
Subproject commit 2d3f4daa567ffe71aeda2e0f6d0bc02850db0627 Subproject commit 07e99855c7a189a2af5b708951815a2c604a8b9a

View file

@ -11,7 +11,7 @@ dependencies:
path: "FreeRTOS/Source" path: "FreeRTOS/Source"
- name: "FreeRTOS-Plus-TCP" - name: "FreeRTOS-Plus-TCP"
version: "2d3f4da" version: "07e9985"
repository: repository:
type: "git" type: "git"
url: "https://github.com/FreeRTOS/FreeRTOS-Plus-TCP.git" url: "https://github.com/FreeRTOS/FreeRTOS-Plus-TCP.git"