Skip to content

Commit

Permalink
Fix compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
gon1332 committed Jan 28, 2025
1 parent 699e256 commit 7eb337f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/dep/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,12 +1489,12 @@ static const struct sigevent* timerIntHandler(void* data, int id) {

#ifdef HAVE_POSIX_TIMER

struct timespec tp;
if (clock_gettime(CLOCK_REALTIME, &tp) < 0) {
PERROR("clock_gettime() failed, exiting.");
exit(0);
}
ti_from_timespec(&tp, time);
struct timespec tp;
if (clock_gettime(CLOCK_REALTIME, &tp) < 0) {
PERROR("clock_gettime() failed, exiting.");
exit(0);
}
ti_from_timespec(&tp, time);

#else

Expand Down
2 changes: 1 addition & 1 deletion src/ptpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#ifdef HAVE_CONFIG_H
// # include <config.h>
# include <config_cmake.h>
#include <config_cmake.h>
#endif /* HAVE_CONFIG_H */


Expand Down

0 comments on commit 7eb337f

Please sign in to comment.