Commit cef86fc274b29e4cb057d12888438cf6e1e4c2c8

Authored by 20162026
Committed by Stéphane Raimbault
1 parent 783e6514

fix modbus quirks function definition

Showing 1 changed file with 3 additions and 3 deletions
src/modbus.c
... ... @@ -1857,19 +1857,19 @@ int modbus_get_header_length(modbus_t *ctx)
1857 1857 return ctx->backend->header_length;
1858 1858 }
1859 1859  
1860   -int modbus_enable_quirks(modbus_t *ctx, uint32_t quirks_mask)
  1860 +int modbus_enable_quirks(modbus_t *ctx, unsigned int quirks_mask)
1861 1861 {
1862 1862 if (ctx == NULL) {
1863 1863 errno = EINVAL;
1864 1864 return -1;
1865 1865 }
1866 1866  
1867   - /* Enable quirks that have a true value at their index in the mask */
  1867 + /* Enable quirks that have a true value at their index in the mask */
1868 1868 ctx->quirks |= quirks_mask;
1869 1869 return 0;
1870 1870 }
1871 1871  
1872   -int modbus_disable_quirks(modbus_t *ctx, uint32_t quirks_mask)
  1872 +int modbus_disable_quirks(modbus_t *ctx, unsigned int quirks_mask)
1873 1873 {
1874 1874 if (ctx == NULL) {
1875 1875 errno = EINVAL;
... ...