summaryrefslogtreecommitdiff
path: root/bcache-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcache-test.c')
-rw-r--r--bcache-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bcache-test.c b/bcache-test.c
index ab9c77e..aa963a9 100644
--- a/bcache-test.c
+++ b/bcache-test.c
@@ -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);