From: Joel Rosdahl Date: Sun, 30 May 2010 18:29:04 +0000 (+0200) Subject: Declare variables first in scope X-Git-Tag: v3.0~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccd8133cc6fbe19dfbb8129e275065079f18a72b;p=thirdparty%2Fccache.git Declare variables first in scope --- diff --git a/hashutil.c b/hashutil.c index 06c03eca0..b2aa15dfc 100644 --- a/hashutil.c +++ b/hashutil.c @@ -168,9 +168,9 @@ end: * Make sure that the hash sum changes if the (potential) * expansion of __DATE__ changes. */ - cc_log("Found __DATE__ in %s", path); time_t t = time(NULL); struct tm *now = localtime(&t); + cc_log("Found __DATE__ in %s", path); hash_delimiter(hash, "date"); hash_buffer(hash, &now->tm_year, sizeof(now->tm_year)); hash_buffer(hash, &now->tm_mon, sizeof(now->tm_mon));