From cef86fc274b29e4cb057d12888438cf6e1e4c2c8 Mon Sep 17 00:00:00 2001 From: 20162026 <36726858+20162026@users.noreply.github.com> Date: Sat, 3 Dec 2022 17:18:50 +0200 Subject: [PATCH] fix modbus quirks function definition --- src/modbus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modbus.c b/src/modbus.c index 4cf6083..0360d5c 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -1857,19 +1857,19 @@ int modbus_get_header_length(modbus_t *ctx) return ctx->backend->header_length; } -int modbus_enable_quirks(modbus_t *ctx, uint32_t quirks_mask) +int modbus_enable_quirks(modbus_t *ctx, unsigned int quirks_mask) { if (ctx == NULL) { errno = EINVAL; return -1; } - /* Enable quirks that have a true value at their index in the mask */ + /* Enable quirks that have a true value at their index in the mask */ ctx->quirks |= quirks_mask; return 0; } -int modbus_disable_quirks(modbus_t *ctx, uint32_t quirks_mask) +int modbus_disable_quirks(modbus_t *ctx, unsigned int quirks_mask) { if (ctx == NULL) { errno = EINVAL; -- libgit2 0.21.4