diff options
author | David Phillips <david@sighup.nz> | 2017-05-28 19:43:15 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-05-28 19:43:15 +1200 |
commit | 1b4cd0af5d17b51b634eb28a12e8e4037b0088ef (patch) | |
tree | 2cd1cde12f5921c44f5aa4f549bf15709cf3783d | |
parent | 2c45b6e531f3630330ca1599bd96f7f12814fdc1 (diff) | |
download | sand-leek-1b4cd0af5d17b51b634eb28a12e8e4037b0088ef.tar.xz |
Tidy the raw_len switch slightly
-rw-r--r-- | sand-leek.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sand-leek.c b/sand-leek.c index a5de3d0..94018a1 100644 --- a/sand-leek.c +++ b/sand-leek.c @@ -180,18 +180,18 @@ work(void *arg) { int raw_len = 0; switch (search_len) { case 1: raw_len = 0; break; - case 2: raw_len = 1; break; + case 2: case 3: raw_len = 1; break; case 4: raw_len = 2; break; - case 5: raw_len = 3; break; + case 5: case 6: raw_len = 3; break; case 7: raw_len = 4; break; - case 8: raw_len = 5; break; + case 8: case 9: raw_len = 5; break; case 10: raw_len = 6; break; case 11: raw_len = 6; break; case 12: raw_len = 7; break; - case 13: raw_len = 8; break; + case 13: case 14: raw_len = 8; break; case 15: raw_len = 9; break; case 16: raw_len = 10; break; |