>From fd7d3c5927aac8c474ac44f5b0e00f5768a8cb24 Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Sat, 1 Nov 2014 18:58:38 +0100 Subject: [PATCH] Addition of two include guards Unique include guards were added to two header files to make their reuse a bit safer. https://www.securecoding.cert.org/confluence/display/cplusplus/PRE06-CPP.+Enclose+header+files+in+an+inclusion+guard Signed-off-by: Markus Elfring --- src/cpu/intel_cpus.h | 4 ++++ src/report/report-data-html.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/cpu/intel_cpus.h b/src/cpu/intel_cpus.h index cde4a2d..810a243 100644 --- a/src/cpu/intel_cpus.h +++ b/src/cpu/intel_cpus.h @@ -1,3 +1,5 @@ +#ifndef PowerTop_INTEL_CPUS_H_84F09FB4F519470FA914AA9B02453221 +#define PowerTop_INTEL_CPUS_H_84F09FB4F519470FA914AA9B02453221 /* * Copyright 2010, Intel Corporation * @@ -171,3 +173,5 @@ public: int is_supported_intel_cpu(int model); int byt_has_ahci(); + +#endif diff --git a/src/report/report-data-html.h b/src/report/report-data-html.h index 616b294..fa796e9 100644 --- a/src/report/report-data-html.h +++ b/src/report/report-data-html.h @@ -1,3 +1,6 @@ +#ifndef PowerTop_REPORT_DATA_HTML_H_C58C116411234A34AC2EFB8D23A69713 +#define PowerTop_REPORT_DATA_HTML_H_C58C116411234A34AC2EFB8D23A69713 + #include #include @@ -67,3 +70,4 @@ init_tune_table_attr(struct table_attributes *table_css, int rows, int cols); string double_to_string(double dval); +#endif -- 2.1.3