From 3baaadfc8d8a2363ce83bc0d616f3e3ccd1b85de Mon Sep 17 00:00:00 2001 From: Kaleb Himes Date: Thu, 24 Sep 2020 11:25:23 -0600 Subject: [PATCH] Guard unused function with NO_SHA256 and address typo --- hash/sha256-hash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hash/sha256-hash.c b/hash/sha256-hash.c index 5fdb09e8..afc899d4 100644 --- a/hash/sha256-hash.c +++ b/hash/sha256-hash.c @@ -24,11 +24,13 @@ #include #include +#ifndef NO_SHA256 void usage(void) { printf("./run \n"); exit(-99); } +#endif int main(int argc, char** argv) { @@ -83,7 +85,7 @@ int main(int argc, char** argv) fclose(inputStream); XFREE(rawInput, NULL, DYNAMIC_TYPE_TMP_BUFFER); #else - printf("Please enabling sha256 and then try again\n"); + printf("Please enable sha256 and then try again\n"); #endif return ret; }