Browse Source

fix modbus quirks function definition

20162026 2 năm trước cách đây
mục cha
commit
cef86fc274
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/modbus.c

+ 3 - 3
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;