]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Declare variables first in scope
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 30 May 2010 18:29:04 +0000 (20:29 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 30 May 2010 18:29:04 +0000 (20:29 +0200)
hashutil.c

index 06c03eca0554f9e1e7d3f978af11b5c6aee28206..b2aa15dfc31420cf85b320e34ce2d45d154b16ce 100644 (file)
@@ -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));