Whitespace cleanup.
authorNikolaus Rath <Nikolaus@rath.org>
Mon, 28 Mar 2016 21:14:10 +0000 (14:14 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Tue, 29 Mar 2016 20:18:17 +0000 (13:18 -0700)
Applied (whitespace-cleanup) to each file. Having whitespace changes
in the VCS is ugly, but it ensures that in the future committers
can run this function to *avoid* commiting any whitespace.

include/fuse_common.h
include/fuse_lowlevel.h
lib/fuse.c
lib/fuse_lowlevel.c
lib/fuse_signals.c
lib/mount.c
lib/mount_bsd.c

index beb44c7d09899da4d768e8b31df7928df95e3672..17305136fa225cbc8dca937dd6e61ea9822f1815 100644 (file)
@@ -114,7 +114,7 @@ struct fuse_file_info {
 #define FUSE_CAP_SPLICE_READ           (1 << 9)
 #define FUSE_CAP_FLOCK_LOCKS           (1 << 10)
 #define FUSE_CAP_IOCTL_DIR             (1 << 11)
-#define FUSE_CAP_AUTO_INVAL_DATA       (1 << 12)
+#define FUSE_CAP_AUTO_INVAL_DATA       (1 << 12)
 #define FUSE_CAP_READDIRPLUS           (1 << 13)
 #define FUSE_CAP_READDIRPLUS_AUTO      (1 << 14)
 #define FUSE_CAP_ASYNC_DIO             (1 << 15)
@@ -429,7 +429,7 @@ struct fuse_bufvec {
 };
 
 /* Initialize bufvec with a single buffer of given size */
-#define FUSE_BUFVEC_INIT(size__)                               \
+#define FUSE_BUFVEC_INIT(size__)                               \
        ((struct fuse_bufvec) {                                 \
                /* .count= */ 1,                                \
                /* .idx =  */ 0,                                \
index 9bdd655c42f4027559cdd5b0626027611164ea97..2ce3aa711e7add4d2fbb661213b41f0a8d1424b5 100644 (file)
@@ -602,7 +602,7 @@ struct fuse_lowlevel_ops {
         *
         * fi->fh will contain the value set by the opendir method, or
         * will be undefined if the opendir method didn't set any value.
-         *
+        *
         * Returning a directory entry from readdir() does not affect
         * its lookup count.
         *
@@ -932,11 +932,11 @@ struct fuse_lowlevel_ops {
         * kernel supports splicing from the fuse device, then the
         * data will be made available in pipe for supporting zero
         * copy data transfer.
-         *
-         * buf->count is guaranteed to be one (and thus buf->idx is
-         * always zero). The write_buf handler must ensure that
-         * bufv->off is correctly updated (reflecting the number of
-         * bytes read from bufv->buf[0]).
+        *
+        * buf->count is guaranteed to be one (and thus buf->idx is
+        * always zero). The write_buf handler must ensure that
+        * bufv->off is correctly updated (reflecting the number of
+        * bytes read from bufv->buf[0]).
         *
         * Introduced in version 2.9
         *
@@ -1036,7 +1036,7 @@ struct fuse_lowlevel_ops {
         *
         * fi->fh will contain the value set by the opendir method, or
         * will be undefined if the opendir method didn't set any value.
-         *
+        *
         * In contrast to readdir() (which does not affect the lookup counts),
         * the lookup count of every entry returned by readdirplus(), except "."
         * and "..", is incremented by one.
@@ -1402,7 +1402,7 @@ int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph);
  * @return zero for success, -errno for failure
  */
 int fuse_lowlevel_notify_inval_inode(struct fuse_chan *ch, fuse_ino_t ino,
-                                     off_t off, off_t len);
+                                    off_t off, off_t len);
 
 /**
  * Notify to invalidate parent attributes and the dentry matching
@@ -1419,7 +1419,7 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_chan *ch, fuse_ino_t ino,
  * @return zero for success, -errno for failure
  */
 int fuse_lowlevel_notify_inval_entry(struct fuse_chan *ch, fuse_ino_t parent,
-                                     const char *name, size_t namelen);
+                                    const char *name, size_t namelen);
 
 /**
  * Notify to invalidate parent attributes and delete the dentry matching
index 781efb28466c054d295e76c6bd2b65ec1cd7a229..a879ffabaf3bbcbf9ccdc154697d22a4f930021e 100644 (file)
@@ -118,11 +118,11 @@ struct node_table {
 };
 
 #define container_of(ptr, type, member) ({                              \
-                        const typeof( ((type *)0)->member ) *__mptr = (ptr); \
-                        (type *)( (char *)__mptr - offsetof(type,member) );})
+                       const typeof( ((type *)0)->member ) *__mptr = (ptr); \
+                       (type *)( (char *)__mptr - offsetof(type,member) );})
 
 #define list_entry(ptr, type, member)           \
-        container_of(ptr, type, member)
+       container_of(ptr, type, member)
 
 struct list_head {
        struct list_head *next;
@@ -4831,4 +4831,3 @@ void fuse_destroy(struct fuse *f)
        free(f);
        fuse_delete_context_key();
 }
-
index 4fe3678d6839af2de4fd2973bacbdef1e0d1026c..91568b1530d832417d26f6a8f5723c89b3883655 100755 (executable)
@@ -1997,7 +1997,7 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
                fprintf(stderr, "   max_background=%i\n",
                        outarg.max_background);
                fprintf(stderr, "   congestion_threshold=%i\n",
-                       outarg.congestion_threshold);
+                       outarg.congestion_threshold);
                fprintf(stderr, "   time_gran=%u\n",
                        outarg.time_gran);
        }
@@ -2102,7 +2102,7 @@ int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph)
 }
 
 int fuse_lowlevel_notify_inval_inode(struct fuse_chan *ch, fuse_ino_t ino,
-                                     off_t off, off_t len)
+                                    off_t off, off_t len)
 {
        struct fuse_notify_inval_inode_out outarg;
        struct fuse_ll *f;
@@ -2126,7 +2126,7 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_chan *ch, fuse_ino_t ino,
 }
 
 int fuse_lowlevel_notify_inval_entry(struct fuse_chan *ch, fuse_ino_t parent,
-                                     const char *name, size_t namelen)
+                                    const char *name, size_t namelen)
 {
        struct fuse_notify_inval_entry_out outarg;
        struct fuse_ll *f;
index b992b71f8caebcdd1579b74511c2c19756f48897..9fa787cc7988410b877ff4b1b3c9247ca6a88ace 100755 (executable)
@@ -72,4 +72,3 @@ void fuse_remove_signal_handlers(struct fuse_session *se)
        set_one_signal_handler(SIGTERM, exit_handler, 1);
        set_one_signal_handler(SIGPIPE, SIG_IGN, 1);
 }
-
index de4ae74cf6f746b4c4ff6c3701876ba0f2956475..7be7b25e46dc28b54cb77222bd199d514827672c 100644 (file)
 #ifdef __NetBSD__
 #include <perfuse.h>
 
-#define MS_RDONLY      MNT_RDONLY
-#define MS_NOSUID      MNT_NOSUID
-#define MS_NODEV       MNT_NODEV
-#define MS_NOEXEC      MNT_NOEXEC
-#define MS_SYNCHRONOUS         MNT_SYNCHRONOUS
-#define MS_NOATIME     MNT_NOATIME
+#define MS_RDONLY      MNT_RDONLY
+#define MS_NOSUID      MNT_NOSUID
+#define MS_NODEV       MNT_NODEV
+#define MS_NOEXEC      MNT_NOEXEC
+#define MS_SYNCHRONOUS MNT_SYNCHRONOUS
+#define MS_NOATIME     MNT_NOATIME
 
 #define umount2(mnt, flags) unmount(mnt, (flags == 2) ? MNT_FORCE : 0)
 #endif
@@ -398,7 +398,7 @@ static int fuse_mount_fusermount(const char *mountpoint, struct mount_opts *mo,
        rv = receive_fd(fds[1]);
 
        if (!mo->auto_unmount) {
-               /* with auto_unmount option fusermount will not exit until 
+               /* with auto_unmount option fusermount will not exit until
                   this socket is closed */
                close(fds[1]);
                waitpid(pid, NULL, 0); /* bury zombie */
index 8f3acf0260be70a88e408457c179a75a5b6ddb29..6a7c9587d5d23d517e9b44bdc3c9545553435289 100644 (file)
@@ -43,7 +43,7 @@ struct mount_opts {
        char *kernel_opts;
 };
 
-#define FUSE_DUAL_OPT_KEY(templ, key)                          \
+#define FUSE_DUAL_OPT_KEY(templ, key)                          \
        FUSE_OPT_KEY(templ, key), FUSE_OPT_KEY("no" templ, key)
 
 static const struct fuse_opt fuse_mount_opts[] = {