This commit is contained in:
Kent Overstreet 2010-05-27 20:42:25 -07:00
parent 4b957af924
commit c6d725f9ca
2 changed files with 6 additions and 1 deletions

View File

@ -6,4 +6,4 @@ all: make-bcache bcache-test
clean:
rm -f make-bcache bcache-test *.o
bcache-test: LDFLAGS += -lm -lssl
bcache-test: LDFLAGS += -lm -lssl -lcrypto

View File

@ -102,6 +102,9 @@ int main(int argc, char **argv)
void *buf1 = NULL, *buf2 = NULL;
struct pagestuff *pages, *p;
unsigned char c[16];
char *test;
printf("strchr: %p\n", strchr);
RC4_KEY writedata;
RC4_set_key(&writedata, 16, bcache_magic);
@ -133,6 +136,8 @@ 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);