aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael David Tinoco <rafael.tinoco@linaro.org>2019-03-22 15:25:24 -0300
committerCyril Hrubis <chrubis@suse.cz>2019-03-25 16:55:07 +0100
commit4ad40936bfeb6d10f495fd8231d4b96ba39c4208 (patch)
treec9ec3748bd54f66d2d9a6d34fae0187bea20664e /include
parentcc9106b82eb6fcf80b442c7a51e65c6453c88462 (diff)
lib: Add include guard to tst_safe_clocks.h
When adding a common header to my tests I missed this include guard when accidentally including tst_safe_clocks.h from .c and .h files. Since other tst_safe_*.h files have guards I thought it would be good to add to this one as well. Signed-off-by: Rafael David Tinoco <rafael.tinoco@linaro.org> Reviewed-by: Enji Cooper <yaneurabeya@gmail.com Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/tst_safe_clocks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tst_safe_clocks.h b/include/tst_safe_clocks.h
index 596db4099..34ed953b4 100644
--- a/include/tst_safe_clocks.h
+++ b/include/tst_safe_clocks.h
@@ -5,6 +5,9 @@
* Email : code@zilogic.com
*/
+#ifndef TST_SAFE_CLOCKS_H__
+#define TST_SAFE_CLOCKS_H__
+
#include <time.h>
#include <sys/timex.h>
#include "tst_test.h"
@@ -70,3 +73,5 @@ static inline int safe_clock_adjtime(const char *file, const int lineno,
#define SAFE_CLOCK_ADJTIME(clk_id, txc)\
safe_clock_adjtime(__FILE__, __LINE__, (clk_id), (txc))
+
+#endif /* SAFE_CLOCKS_H__ */