Skip to content

Commit 1c86cb7

Browse files
committed
style fix
Signed-off-by: Martin Mayer <[email protected]>
1 parent 3888633 commit 1c86cb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/thread.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ rcutils_ret_t configure_native_realtime_thread(
7676
int policy;
7777
success &= (pthread_getschedparam(native_handle, &policy, &params) == 0);
7878
success &= (calculate_os_thread_priority(priority, &params.sched_priority) ==
79-
RCUTILS_RET_OK ? 1 : 0);
79+
RCUTILS_RET_OK ? 1 : 0);
8080
success &= (pthread_setschedparam(native_handle, SCHED_FIFO, &params) == 0);
8181

8282
#ifdef __QNXNTO__
@@ -87,7 +87,7 @@ rcutils_ret_t configure_native_realtime_thread(
8787
// Function used to change thread affinity of thread associated with native_handle
8888
if (ThreadCtlExt(
8989
0, native_handle, _NTO_TCTL_RUNMASK,
90-
reinterpret_cast<void *>(run_mask)) == -1)
90+
(void *)run_mask) == -1)
9191
{
9292
success &= 0;
9393
} else {
@@ -111,4 +111,3 @@ rcutils_ret_t configure_native_realtime_thread(
111111
#ifdef __cplusplus
112112
}
113113
#endif
114-

0 commit comments

Comments
 (0)