Skip to content

Commit 1701428

Browse files
TangMeng12sjanc
authored andcommitted
porting/npl/nuttx: fix compile error
porting/npl/nuttx/src/os_callout.c:125:24: error: comparison between pointer and integer [-Werror] 125 | return (c->c_timer != NULL); | ^~ cc1: all warnings being treated as errors Signed-off-by: v-tangmeng <[email protected]>
1 parent a119bda commit 1701428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

porting/npl/nuttx/src/os_callout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ble_npl_callout_is_active(struct ble_npl_callout *c)
122122
int
123123
ble_npl_callout_inited(struct ble_npl_callout *c)
124124
{
125-
return (c->c_timer != NULL);
125+
return (c->c_timer != 0);
126126
}
127127

128128
ble_npl_error_t

0 commit comments

Comments
 (0)