Skip to content

Commit cef86fc

Browse files
20162026stephane
authored andcommitted
fix modbus quirks function definition
1 parent 783e651 commit cef86fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modbus.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,19 +1857,19 @@ int modbus_get_header_length(modbus_t *ctx)
18571857
return ctx->backend->header_length;
18581858
}
18591859

1860-
int modbus_enable_quirks(modbus_t *ctx, uint32_t quirks_mask)
1860+
int modbus_enable_quirks(modbus_t *ctx, unsigned int quirks_mask)
18611861
{
18621862
if (ctx == NULL) {
18631863
errno = EINVAL;
18641864
return -1;
18651865
}
18661866

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 */
18681868
ctx->quirks |= quirks_mask;
18691869
return 0;
18701870
}
18711871

1872-
int modbus_disable_quirks(modbus_t *ctx, uint32_t quirks_mask)
1872+
int modbus_disable_quirks(modbus_t *ctx, unsigned int quirks_mask)
18731873
{
18741874
if (ctx == NULL) {
18751875
errno = EINVAL;

0 commit comments

Comments
 (0)