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;
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;
}