Skip to content

Commit 16d0862

Browse files
wsobelCopilot
andauthored
Update utilities.hpp
Co-authored-by: Copilot <[email protected]>
1 parent e2d0bce commit 16d0862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mtconnect/utilities.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ namespace mtconnect {
241241
/// @brief Thread safe localtime function that uses localtime_s or localtime_r based on platform
242242
/// @param[in] timer pointer to time_t
243243
/// @param[out] buf pointer to tm struct to fill
244-
inline auto safe_localtime(const std::time_t* timer, std::tm* buf) {
244+
inline void safe_localtime(const std::time_t* timer, std::tm* buf) {
245245
#ifdef _WINDOWS
246-
return localtime_s(buf, timer);
246+
localtime_s(buf, timer);
247247
#else
248-
return localtime_r(timer, buf);
248+
localtime_r(timer, buf);
249249
#endif
250250
}
251251

0 commit comments

Comments
 (0)