diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-02-02 11:14:04 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-02-02 11:14:04 +0000 |
commit | e5183747da2b268f53a9464fda5fd6b4856c62a4 (patch) | |
tree | 7c20708b5d28200464b31860da8f54eb2b989759 /example | |
parent | ff30a6cd43535ec318a26c1d3ec9c7edc268e9c9 (diff) | |
download | libfuse-e5183747da2b268f53a9464fda5fd6b4856c62a4.tar.gz |
whitespace fixes
Diffstat (limited to 'example')
-rw-r--r-- | example/fusexmp.c | 14 | ||||
-rw-r--r-- | example/hello.c | 2 | ||||
-rw-r--r-- | example/null.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/example/fusexmp.c b/example/fusexmp.c index d850bc6..3230c36 100644 --- a/example/fusexmp.c +++ b/example/fusexmp.c @@ -153,7 +153,7 @@ static int xmp_chmod(const char *path, mode_t mode) res = chmod(path, mode); if(res == -1) return -errno; - + return 0; } @@ -171,7 +171,7 @@ static int xmp_chown(const char *path, uid_t uid, gid_t gid) static int xmp_truncate(const char *path, off_t size) { int res; - + res = truncate(path, size); if(res == -1) return -errno; @@ -182,7 +182,7 @@ static int xmp_truncate(const char *path, off_t size) static int xmp_utime(const char *path, struct utimbuf *buf) { int res; - + res = utime(path, buf); if(res == -1) return -errno; @@ -196,7 +196,7 @@ static int xmp_open(const char *path, struct fuse_file_info *fi) int res; res = open(path, fi->flags); - if(res == -1) + if(res == -1) return -errno; close(res); @@ -217,7 +217,7 @@ static int xmp_read(const char *path, char *buf, size_t size, off_t offset, res = pread(fd, buf, size, offset); if(res == -1) res = -errno; - + close(fd); return res; } @@ -236,7 +236,7 @@ static int xmp_write(const char *path, const char *buf, size_t size, res = pwrite(fd, buf, size, offset); if(res == -1) res = -errno; - + close(fd); return res; } @@ -256,7 +256,7 @@ static int xmp_release(const char *path, struct fuse_file_info *fi) { /* Just a stub. This method is optional and can safely be left unimplemented */ - + (void) path; (void) fi; return 0; diff --git a/example/hello.c b/example/hello.c index 82da26e..9e4099b 100644 --- a/example/hello.c +++ b/example/hello.c @@ -65,7 +65,7 @@ static int hello_read(const char *path, char *buf, size_t size, off_t offset, (void) fi; if(strcmp(path, hello_path) != 0) return -ENOENT; - + len = strlen(hello_str); if (offset < len) { if (offset + size > len) diff --git a/example/null.c b/example/null.c index c4e505b..d58feab 100644 --- a/example/null.c +++ b/example/null.c @@ -18,7 +18,7 @@ static int null_getattr(const char *path, struct stat *stbuf) { if(strcmp(path, "/") != 0) return -ENOENT; - + stbuf->st_mode = S_IFREG | 0644; stbuf->st_nlink = 1; stbuf->st_uid = getuid(); |