Skip to content

Commit f26d997

Browse files
authored
Merge pull request #83 from ted-miller/main
Explicit casting to resolve warning
2 parents 44f4241 + 126c0e4 commit f26d997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Debug.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void Ros_Debug_BroadcastMsg(char* fmt, ...)
6060
//get synchronized time from the agent
6161
int64_t nanosecs = rmw_uros_epoch_nanos();
6262
Ros_Nanos_To_Time_Msg(nanosecs, &debug_msg_timestamp);
63-
strftime(timestamp, FORMATTED_TIME_SIZE, "%a %Y-%m-%d %H:%M:%S", localtime_r(&debug_msg_timestamp.sec, &synced_time));
63+
strftime(timestamp, FORMATTED_TIME_SIZE, "%a %Y-%m-%d %H:%M:%S", localtime_r((const time_t*)&debug_msg_timestamp.sec, &synced_time));
6464
snprintf(timestamp + strlen(timestamp), FORMATTED_TIME_SIZE - strlen(timestamp), ".%03d ", (int)debug_msg_timestamp.nanosec / 1000000);
6565
}
6666
else

0 commit comments

Comments
 (0)