summaryrefslogtreecommitdiff
path: root/metastore.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2007-05-19 17:26:03 +0200
committerDavid Härdeman <david@hardeman.nu>2007-05-19 17:26:03 +0200
commita4e5b979d910384577750a4672fee44e7c468bd0 (patch)
tree133393bb4876691546a200d626653fb412987783 /metastore.c
parent5fed2f9169fdd0585cc83ff0fa8210d97da77cb2 (diff)
Remove the need for a global variable (do_mtime)
Diffstat (limited to 'metastore.c')
-rw-r--r--metastore.c6
1 files changed, 3 insertions, 3 deletions
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: