From cd6c1568a3040a46632bcb44e8f6bcce29c4cbf7 Mon Sep 17 00:00:00 2001
From: Jbop <34898270+jbop1626@users.noreply.github.com>
Date: Wed, 25 Jul 2018 17:55:53 -0400
Subject: [PATCH] Update include guards
Add include guard to ecc.hpp (a very silly omission)
Update sha1.hpp include guard for more consistent naming
---
src/ecc/ecc.hpp | 5 +++++
src/sha1/sha1.hpp | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/ecc/ecc.hpp b/src/ecc/ecc.hpp
index 7b19362..6b135b6 100644
--- a/src/ecc/ecc.hpp
+++ b/src/ecc/ecc.hpp
@@ -21,6 +21,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
+#ifndef NINTY_233_ECC_HPP
+#define NINTY_233_ECC_HPP
+
typedef uint32_t element[8];
typedef struct {
@@ -88,3 +91,5 @@ void os_to_elem(const uint8_t * os, element elem);
void os_to_point(const uint8_t * os, ec_point & point);
void elem_to_os(const element src, uint8_t * output_os);
void point_to_os(const ec_point & src, uint8_t * output_os);
+
+#endif
diff --git a/src/sha1/sha1.hpp b/src/sha1/sha1.hpp
index ad7a7b9..abeccee 100644
--- a/src/sha1/sha1.hpp
+++ b/src/sha1/sha1.hpp
@@ -17,8 +17,8 @@
along with this program. If not, see .
*/
-#ifndef _SHA1_HPP_
-#define _SHA1_HPP_
+#ifndef NINTY_233_SHA1_HPP
+#define NINTY_233_SHA1_HPP
#ifndef __cplusplus
#error Do not include this header in a C project