From e4d71e44adc6b2d5c8ba217817d63a3c38cbe51a Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Fri, 20 Dec 2024 12:54:25 +0100 Subject: [PATCH] Function calls must adhere to their prototypes. --- src/hal/classicladder/classicladder_gtk.c | 2 +- src/hal/classicladder/manager_gtk.c | 2 +- src/hal/classicladder/socket_modbus_master.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hal/classicladder/classicladder_gtk.c b/src/hal/classicladder/classicladder_gtk.c index 2c2f365df11..78432570c5a 100644 --- a/src/hal/classicladder/classicladder_gtk.c +++ b/src/hal/classicladder/classicladder_gtk.c @@ -176,7 +176,7 @@ void GetTheSizesForRung( void ) // size of the page or block changed ? if ( InfosGene->PageHeight!=PageHeightBak || InfosGene->BlockHeight!=BlockHeightBak ) - UpdateVScrollBar( TRUE/*AutoSelectCurrentRung*/ ); + UpdateVScrollBar( /*AutoSelectCurrentRung*/ ); PageHeightBak = InfosGene->PageHeight; BlockHeightBak = InfosGene->BlockHeight; } diff --git a/src/hal/classicladder/manager_gtk.c b/src/hal/classicladder/manager_gtk.c index 8602c65e4a3..5f5441c7781 100644 --- a/src/hal/classicladder/manager_gtk.c +++ b/src/hal/classicladder/manager_gtk.c @@ -69,7 +69,7 @@ void RefreshSectionSelected( ) EditorButtonsAccordingSectionType( ); //XXX search functionality, not implemented in LinuxCNC. //EnableDisableMenusAccordingSectionType( ); - UpdateVScrollBar( TRUE/*AutoSelectCurrentRung*/ ); + UpdateVScrollBar( /*AutoSelectCurrentRung*/ ); } void ManagerDisplaySections( char ForgetSectionSelected ) diff --git a/src/hal/classicladder/socket_modbus_master.c b/src/hal/classicladder/socket_modbus_master.c index 74194d94134..1eb86cce900 100644 --- a/src/hal/classicladder/socket_modbus_master.c +++ b/src/hal/classicladder/socket_modbus_master.c @@ -122,7 +122,7 @@ void ConfigSerialModbusMaster( void ) int Error = 0; if ( ModbusConfig.ModbusSerialPortNameUsed[ 0 ]!='\0' ) { - if ( !SerialOpen( ModbusConfig.ModbusSerialPortNameUsed, ModbusConfig.ModbusSerialSpeed ) ) + if ( !SerialOpen( /*ModbusConfig.ModbusSerialPortNameUsed, ModbusConfig.ModbusSerialSpeed*/ ) ) { Error = -1; printf(_("INFO CLASSICLADDER---I/O Modbus master Data bits %i Stop bits %i Parity %i\n"),ModbusConfig.ModbusSerialDataBits,ModbusConfig.ModbusSerialStopBits,ModbusConfig.ModbusSerialParity);