Commit 1474991357c1c7523f6dabd09c9095a6bc5e804b

Authored by Stéphane Raimbault
1 parent 93f239f5

Add static declaration to response_exception

Showing 1 changed file with 3 additions and 2 deletions
modbus/modbus.c
... ... @@ -699,8 +699,9 @@ static int response_io_status(uint16_t address, uint16_t count,
699 699 }
700 700  
701 701 /* Build the exception response */
702   -int response_exception(modbus_param_t *mb_param, int slave, int function,
703   - int exception_code, uint8_t *response)
  702 +static int response_exception(modbus_param_t *mb_param, int slave,
  703 + int function, int exception_code,
  704 + uint8_t *response)
704 705 {
705 706 int response_size;
706 707  
... ...