From 7eb337f413da880066dd052efd46a9704a9898cb Mon Sep 17 00:00:00 2001 From: Ioannis Konstantelias Date: Tue, 28 Jan 2025 18:51:10 +0000 Subject: [PATCH] Fix compliance --- src/dep/sys.c | 12 ++++++------ src/ptpd.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dep/sys.c b/src/dep/sys.c index 5152cdf..af6aa6f 100644 --- a/src/dep/sys.c +++ b/src/dep/sys.c @@ -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 diff --git a/src/ptpd.h b/src/ptpd.h index 4ca5c7d..2ffd0ca 100644 --- a/src/ptpd.h +++ b/src/ptpd.h @@ -45,7 +45,7 @@ #ifdef HAVE_CONFIG_H // # include -# include +#include #endif /* HAVE_CONFIG_H */