From a4e5b979d910384577750a4672fee44e7c468bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Sat, 19 May 2007 17:26:03 +0200 Subject: Remove the need for a global variable (do_mtime) --- metastore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'metastore.c') diff --git a/metastore.c b/metastore.c index 9ebc8fc..2db4c31 100644 --- a/metastore.c +++ b/metastore.c @@ -34,7 +34,7 @@ #include "metaentry.h" /* Used to signal whether mtimes should be corrected */ -int do_mtime = 0; +static int do_mtime = 0; /* * Prints differences between stored and actual metadata @@ -318,7 +318,7 @@ main(int argc, char **argv, char **envp) exit(EXIT_FAILURE); } - mentries_compare(mhead, mfhead, compare_print); + mentries_compare(mhead, mfhead, compare_print, do_mtime); break; case ACTION_SAVE: @@ -359,7 +359,7 @@ main(int argc, char **argv, char **envp) exit(EXIT_FAILURE); } - mentries_compare(mhead, mfhead, compare_fix); + mentries_compare(mhead, mfhead, compare_fix, do_mtime); break; case ACTION_HELP: -- cgit v1.2.1