From: Joel Rosdahl Date: Mon, 9 Apr 2012 10:36:32 +0000 (+0200) Subject: Fix build error for C89-only compilers X-Git-Tag: v3.2~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16fb022d65f431b2dbd0d1b04481d0725da25aaf;p=thirdparty%2Fccache.git Fix build error for C89-only compilers --- diff --git a/test/test_conf.c b/test/test_conf.c index 802974f4d..bef9eddcd 100644 --- a/test/test_conf.c +++ b/test/test_conf.c @@ -83,9 +83,9 @@ TEST(conf_create) TEST(conf_read_valid_config) { struct conf *conf = conf_create(); - char *errmsg; + char *errmsg, *user; putenv("USER=rabbit"); - const char *user = getenv("USER"); + user = getenv("USER"); CHECK_STR_EQ("rabbit", user); create_file( "ccache.conf",