Skip to content

Commit 98c9111

Browse files
committed
Fix incompatible pointer type in get_cable_id call
Fix SW #4707860: mstflint 4.33 rpm build failing with --enable-cables The get_cable_id() function arguments were passed in wrong order, causing incompatible pointer type errors with strict compiler flags. Swap arguments to match function signature: - get_cable_id(mf, &devid, &(cbl->cable_type)) Tested: Resolves build failure with --enable-cables and -Werror=incompatible-pointer-types
1 parent 84bddce commit 98c9111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mtcr_ul/mtcr_cables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ int mcables_open(mfile* mf, int port)
263263
}
264264

265265
u_int32_t devid = 0;
266-
int rc = get_cable_id(mf, &(cbl->cable_type), &devid);
266+
int rc = get_cable_id(mf, &devid, &(cbl->cable_type));
267267

268268
DBG_PRINTF("cable type: %d\n", cbl->cable_type);
269269
DBG_PRINTF("devid: %d\n", devid);

0 commit comments

Comments
 (0)