# HG changeset patch # User Jan Mulder # Date 1554294792 -7200 # Node ID f6961efb3794357b9160c1a22169e08c3f110759 # Parent 3973208c4a20861e53431e8cabf4bb88f494573a cleanup: do not re-implement a standard function I was triggered by a spelling error, but why implement a function that is standard? Again: trivial cleanup. Signed-off-by: Jan Mulder diff -r 3973208c4a20 -r f6961efb3794 Small_CPU/Src/scheduler.c --- a/Small_CPU/Src/scheduler.c Wed Apr 03 14:16:59 2019 +0200 +++ b/Small_CPU/Src/scheduler.c Wed Apr 03 14:33:12 2019 +0200 @@ -74,7 +74,6 @@ _Bool vpm_crush2(void); void scheduleUpdateDeviceData(void); -void initStructWithZeero(uint8_t* data, uint16_t length); long get_nofly_time_minutes(void); void copyActualGas(SGas gas); void copyPressureData(void); @@ -98,7 +97,7 @@ void initGlobals(void) { - initStructWithZeero((uint8_t*) &global, sizeof(SGlobal)); + bzero(&global, sizeof(SGlobal)); global.dataSendToSlavePending = 0; global.dataSendToSlaveIsValid = 1; @@ -1301,13 +1300,6 @@ } return 0; -}; - - -void initStructWithZeero(uint8_t* data, uint16_t length) -{ - for(uint16_t i = 0; i < length; i++) - data[i] = 0; }