aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2010-05-29 18:41:42 -0700
committerKent Overstreet <kent.overstreet@gmail.com>2010-05-29 20:27:01 -0700
commit14db4b49aaac272b292bda97fcc0ec98b71b2e2f (patch)
treecae8267f6ff192e0f5f62ffebdad41765358baa4
parent5cffe67790d96ad515658b3f80cac5d9bc939077 (diff)
downloadbcache-tools-14db4b49aaac272b292bda97fcc0ec98b71b2e2f.tar.gz
auto
-rw-r--r--bcache-test.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bcache-test.c b/bcache-test.c
index 876f4924..8db853b6 100644
--- a/bcache-test.c
+++ b/bcache-test.c
@@ -103,11 +103,8 @@ int main(int argc, char **argv)
void *buf1 = NULL, *buf2 = NULL;
struct pagestuff *pages, *p;
unsigned char c[16];
- char *test;
time_t last_printed = 0;
- printf("strchr: %p\n", strchr);
-
RC4_KEY writedata;
RC4_set_key(&writedata, 16, bcache_magic);
@@ -138,8 +135,6 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
- test = strchr(argv[i], ':');
-
fd1 = open(argv[i], (destructive ? O_RDWR : O_RDONLY)|direct);
if (!csum)
fd2 = open(argv[i + 1], (destructive ? O_RDWR : O_RDONLY)|direct);
@@ -176,7 +171,7 @@ int main(int argc, char **argv)
if (!verbose) {
time_t now = time(NULL);
- if (now - last_printed >= 5) {
+ if (now - last_printed >= 2) {
last_printed = now;
goto print;
}