This commit is contained in:
Kent Overstreet 2010-05-29 18:41:42 -07:00
parent 5cffe67790
commit 14db4b49aa

View File

@ -103,11 +103,8 @@ int main(int argc, char **argv)
void *buf1 = NULL, *buf2 = NULL; void *buf1 = NULL, *buf2 = NULL;
struct pagestuff *pages, *p; struct pagestuff *pages, *p;
unsigned char c[16]; unsigned char c[16];
char *test;
time_t last_printed = 0; time_t last_printed = 0;
printf("strchr: %p\n", strchr);
RC4_KEY writedata; RC4_KEY writedata;
RC4_set_key(&writedata, 16, bcache_magic); RC4_set_key(&writedata, 16, bcache_magic);
@ -138,8 +135,6 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
test = strchr(argv[i], ':');
fd1 = open(argv[i], (destructive ? O_RDWR : O_RDONLY)|direct); fd1 = open(argv[i], (destructive ? O_RDWR : O_RDONLY)|direct);
if (!csum) if (!csum)
fd2 = open(argv[i + 1], (destructive ? O_RDWR : O_RDONLY)|direct); fd2 = open(argv[i + 1], (destructive ? O_RDWR : O_RDONLY)|direct);
@ -176,7 +171,7 @@ int main(int argc, char **argv)
if (!verbose) { if (!verbose) {
time_t now = time(NULL); time_t now = time(NULL);
if (now - last_printed >= 5) { if (now - last_printed >= 2) {
last_printed = now; last_printed = now;
goto print; goto print;
} }