summaryrefslogtreecommitdiff
path: root/make-bcache.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2010-07-29 23:05:51 -0700
committerKent Overstreet <kent.overstreet@gmail.com>2010-07-29 23:05:51 -0700
commite7b1ba1bd08087f56b6fd1e4aad1cc521a2e35fd (patch)
treeed0acf0120f59ff592ab1600d1db0b02b34767b0 /make-bcache.c
parent8dc5698fe9ebf4c7f87bd339a163c18328421756 (diff)
Cleanups
Diffstat (limited to 'make-bcache.c')
-rw-r--r--make-bcache.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/make-bcache.c b/make-bcache.c
index 2defbaf..04861f9 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -75,19 +74,24 @@ long hatoi(const char *s)
return i;
}
+void usage()
+{
+ printf("");
+ exit(EXIT_FAILURE);
+}
+
int main(int argc, char **argv)
{
int64_t nblocks, bucketsize = 32, blocksize = 8;
int fd, i, c;
struct cache_sb sb;
- while ((c = getopt(argc, argv, "b:")) != -1) {
+ while ((c = getopt(argc, argv, "b:")) != -1)
switch (c) {
case 'b':
bucketsize = hatoi(optarg) / 512;
break;
}
- }
if (argc <= optind) {
printf("Please supply a device\n");