summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2010-05-27 20:42:25 -0700
committerKent Overstreet <kent.overstreet@gmail.com>2010-05-27 20:42:25 -0700
commitc6d725f9ca45a97f6fcd084550da8d15813b4ae9 (patch)
tree669c0d6a90ce8dc71601779ef32e9ac8870c14d3
parent4b957af9246d7f533997ba47e84b7ae1ac19c9d3 (diff)
auto
-rw-r--r--Makefile2
-rw-r--r--bcache-test.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b67b0f8..8d8c0da 100644
--- a/Makefile
+++ b/Makefile
@@ -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
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);