Skip to content

Commit

Permalink
hrt_ioctl.c: Cast NULL (which is defined as (void *)0) to integer
Browse files Browse the repository at this point in the history
The value is returned as integer, some compilers are not happy we assign
a pointer to void.
  • Loading branch information
pussuw committed Sep 2, 2024
1 parent f24543c commit 4410fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/nuttx/src/px4/common/hrt_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ hrt_ioctl(unsigned int cmd, unsigned long arg)
#ifdef PX4_USERSPACE_HRT
*(uintptr_t *)arg = hrt_absolute_time_usr_base();
#else
*(uintptr_t *)arg = NULL;
*(uintptr_t *)arg = (uintptr_t)NULL;
#endif
}
break;
Expand Down

0 comments on commit 4410fc6

Please sign in to comment.