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 802d555 commit 828d95a
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 828d95a

Please sign in to comment.