>From e238bc65557e9698ec90393ce3d545aaf56db41f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 21 Jul 2009 15:23:55 +0200 Subject: [PATCH 2/2] tests/test-sha1.c: literal strings are immutable; don't assign them to 'char *' --- tests/test-sha1.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-sha1.c b/tests/test-sha1.c index 0cfb309..4742138 100644 --- a/tests/test-sha1.c +++ b/tests/test-sha1.c @@ -25,8 +25,8 @@ int main (int argc, char *argv[]) { - char *in1 = "abcdefgh"; - char *out1 = "\x42\x5a\xf1\x2a\x07\x43\x50\x2b" + const char *in1 = "abcdefgh"; + const char *out1 = "\x42\x5a\xf1\x2a\x07\x43\x50\x2b" "\x32\x2e\x93\xa0\x15\xbc\xf8\x68\xe3\x24\xd5\x6a"; char buf[SHA1_DIGEST_SIZE]; -- 1.6.3.3