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
4 changed files with 8 additions and 4 deletions

View File

@@ -227,7 +227,9 @@ void traceOnEnter()
/* clear the buffer */
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 )
/* 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 === */
FreeRTOS_FillEndPoint( &( xInterfaces[ 0 ] ), &( xEndPoints [ 0 ] ), ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );

View File

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