From d15925601a50c0b2b3156aebeb758d505c0709b0 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Thu, 23 Oct 2008 20:07:42 -0700 Subject: Indent fixes. --- Makefile.am | 2 +- src/ifuse.c | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index 5330ea5..27732b8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,4 +2,4 @@ AUTOMAKE_OPTIONS = foreign SUBDIRS = src data indent: - indent -kr -ut -ts4 -l120 src/*.c src/*.h + indent -kr -ut -ts4 -l120 src/*.c diff --git a/src/ifuse.c b/src/ifuse.c index a0e950e..1db04ad 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -331,8 +331,7 @@ static struct fuse_operations ifuse_oper = { .destroy = ifuse_cleanup }; -static int ifuse_opt_proc(void *data, const char *arg, int key, - struct fuse_args *outargs) +static int ifuse_opt_proc(void *data, const char *arg, int key, struct fuse_args *outargs) { char *tmp; static int option_num = 0; @@ -362,7 +361,7 @@ int main(int argc, char *argv[]) char **ammended_argv; int i, j; struct fuse_args args = FUSE_ARGS_INIT(argc, argv); - + // Parse extra options if (argc > 2 && (ammended_argv = malloc((argc + 1) * sizeof(*ammended_argv)))) { for (i = j = 0; ammended_argv[j] = argv[i], i < argc; i++) { @@ -377,16 +376,16 @@ int main(int argc, char *argv[]) argc = j; } - if (fuse_opt_parse(&args, NULL, NULL, ifuse_opt_proc) == -1){ + if (fuse_opt_parse(&args, NULL, NULL, ifuse_opt_proc) == -1) { exit(-1); } - - if (argc < 2){ + + if (argc < 2) { fprintf(stderr, "A path to the USB device must be specified\n"); return -1; } - char *argument = malloc((strlen(argv[1])+ 10) * sizeof(char)); + char *argument = malloc((strlen(argv[1]) + 10) * sizeof(char)); sprintf(argument, "-ofsname=%s", argv[1]); fuse_opt_add_arg(&args, argument); fuse_opt_add_arg(&args, "-osubtype=ifuse"); -- cgit v1.1-32-gdbae