summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fzy.c10
-rw-r--r--fzytest.c1
2 files changed, 5 insertions, 6 deletions
diff --git a/fzy.c b/fzy.c
index 8d78687..9521739 100644
--- a/fzy.c
+++ b/fzy.c
@@ -221,12 +221,12 @@ int main(int argc, char *argv[]) {
break;
case 'b':
if (optarg) {
- if (sscanf(optarg, "%d", &benchmark) != 1) {
- usage(argv[0]);
- exit(EXIT_FAILURE);
- }
+ if (sscanf(optarg, "%d", &benchmark) != 1) {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
} else {
- benchmark = 100;
+ benchmark = 100;
}
break;
case 't':
diff --git a/fzytest.c b/fzytest.c
index ac1b761..828fa1b 100644
--- a/fzytest.c
+++ b/fzytest.c
@@ -108,7 +108,6 @@ void test_positions_5() {
assert(positions[2] == 6);
}
-
void test_positions_exact() {
size_t positions[3];
match_positions("foo", "foo", positions);