From: <fla...@gm...> - 2008-01-02 18:14:37
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1199296181 -3600 # Node ID 4667c4d7f2dfe1fe79e5a495c2b36cfa94b1e397 # Parent 9e0d82a4495411cbbdce8756c8b117df56b30c50 Mark stuff more constant. diff -r 4667c4d7f2dfe1fe79e5a495c2b36cfa94b1e397 -r 9e0d82a4495411cbbdce8756c8b117df56b30c50 src/input/sha1.c --- a/src/input/sha1.c Wed Jan 02 18:49:41 2008 +0100 +++ b/src/input/sha1.c Wed Jan 02 18:48:29 2008 +0100 @@ -315,12 +315,12 @@ void sha_print(unsigned char digest[20]) } } -char *sha_version(void) +const char *sha_version(void) { #if (SHA_VERSION == 1) - static char *version = "SHA-1"; + static const char *version = "SHA-1"; #else - static char *version = "SHA"; + static const char *version = "SHA"; #endif return(version); } diff -r 4667c4d7f2dfe1fe79e5a495c2b36cfa94b1e397 -r 9e0d82a4495411cbbdce8756c8b117df56b30c50 src/input/sha1.h --- a/src/input/sha1.h Wed Jan 02 18:49:41 2008 +0100 +++ b/src/input/sha1.h Wed Jan 02 18:48:29 2008 +0100 @@ -30,7 +30,7 @@ void sha_final(unsigned char [20], SHA_I void sha_stream(unsigned char [20], SHA_INFO *, FILE *); void sha_print(unsigned char [20]); -char *sha_version(void); +const char *sha_version(void); #define SHA_VERSION 1 |