From 33ce5e14cecc700978037bb2d8718daeb093395d Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Tue, 16 Jul 2019 20:22:45 -0400 Subject: [PATCH] Remove const This was causing compilation failures with clang, that there were duplicate const keywords once the macro was expanded in hash.h --- crypto_sign/sphincs-shake256-128f-robust/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-128f-simple/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-128s-robust/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-128s-simple/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-192f-robust/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-192f-simple/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-192s-robust/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-192s-simple/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-256f-robust/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-256f-simple/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-256s-robust/clean/primitive.h | 2 +- crypto_sign/sphincs-shake256-256s-simple/clean/primitive.h | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/crypto_sign/sphincs-shake256-128f-robust/clean/primitive.h b/crypto_sign/sphincs-shake256-128f-robust/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-128f-robust/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-128f-robust/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-128f-simple/clean/primitive.h b/crypto_sign/sphincs-shake256-128f-simple/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-128f-simple/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-128f-simple/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-128s-robust/clean/primitive.h b/crypto_sign/sphincs-shake256-128s-robust/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-128s-robust/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-128s-robust/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-128s-simple/clean/primitive.h b/crypto_sign/sphincs-shake256-128s-simple/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-128s-simple/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-128s-simple/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-192f-robust/clean/primitive.h b/crypto_sign/sphincs-shake256-192f-robust/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-192f-robust/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-192f-robust/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-192f-simple/clean/primitive.h b/crypto_sign/sphincs-shake256-192f-simple/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-192f-simple/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-192f-simple/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-192s-robust/clean/primitive.h b/crypto_sign/sphincs-shake256-192s-robust/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-192s-robust/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-192s-robust/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-192s-simple/clean/primitive.h b/crypto_sign/sphincs-shake256-192s-simple/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-192s-simple/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-192s-simple/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-256f-robust/clean/primitive.h b/crypto_sign/sphincs-shake256-256f-robust/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-256f-robust/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-256f-robust/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-256f-simple/clean/primitive.h b/crypto_sign/sphincs-shake256-256f-simple/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-256f-simple/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-256f-simple/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-256s-robust/clean/primitive.h b/crypto_sign/sphincs-shake256-256s-robust/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-256s-robust/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-256s-robust/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif diff --git a/crypto_sign/sphincs-shake256-256s-simple/clean/primitive.h b/crypto_sign/sphincs-shake256-256s-simple/clean/primitive.h index 4bdd58f4..52ce4d50 100644 --- a/crypto_sign/sphincs-shake256-256s-simple/clean/primitive.h +++ b/crypto_sign/sphincs-shake256-256s-simple/clean/primitive.h @@ -2,6 +2,6 @@ #define SPX_PRIMITIVE_H -#define hash_state const int +#define hash_state int #endif