[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-fuse] 10/12: lint
From: |
gnunet |
Subject: |
[gnunet-fuse] 10/12: lint |
Date: |
Wed, 20 Nov 2019 00:00:50 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet-fuse.
commit 8dec15190f2605b2dcfeca8a1965f24cf1062089
Author: ng0 <address@hidden>
AuthorDate: Tue Nov 19 22:27:30 2019 +0000
lint
---
src/fuse/gfs_download.h | 10 +++++-----
src/fuse/gnunet-fuse.h | 42 +++++++++++++++++++++---------------------
src/fuse/mutex.h | 6 +++---
3 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/fuse/gfs_download.h b/src/fuse/gfs_download.h
index d1d46dc..6a00b55 100644
--- a/src/fuse/gfs_download.h
+++ b/src/fuse/gfs_download.h
@@ -1,17 +1,17 @@
/*
This file is part of gnunet-fuse.
Copyright (C) 2012 GNUnet e.V.
-
+
gnunet-fuse is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 3, or (at your
option) any later version.
-
+
gnunet-fuse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -37,7 +37,7 @@
*/
int
GNUNET_FUSE_download_file (struct GNUNET_FUSE_PathInfo *path_info,
- off_t start_offset,
- uint64_t length);
+ off_t start_offset,
+ uint64_t length);
#endif
diff --git a/src/fuse/gnunet-fuse.h b/src/fuse/gnunet-fuse.h
index f321a56..982e02e 100644
--- a/src/fuse/gnunet-fuse.h
+++ b/src/fuse/gnunet-fuse.h
@@ -148,9 +148,9 @@ struct GNUNET_FUSE_PathInfo
*/
struct GNUNET_FUSE_PathInfo *
GNUNET_FUSE_path_info_create (struct GNUNET_FUSE_PathInfo *parent,
- const char *filename,
- const struct GNUNET_FS_Uri *uri,
- int is_directory);
+ const char *filename,
+ const struct GNUNET_FS_Uri *uri,
+ int is_directory);
/**
@@ -163,7 +163,7 @@ GNUNET_FUSE_path_info_create (struct GNUNET_FUSE_PathInfo
*parent,
*/
struct GNUNET_FUSE_PathInfo *
GNUNET_FUSE_path_info_get (const char *path,
- int *eno);
+ int *eno);
/**
@@ -195,39 +195,39 @@ GNUNET_FUSE_path_info_delete (struct GNUNET_FUSE_PathInfo
*pi);
*/
int
GNUNET_FUSE_load_directory (struct GNUNET_FUSE_PathInfo *pi,
- int * eno);
+ int *eno);
/* FUSE function files */
-int gn_getattr(const char *path, struct stat *stbuf);
+int gn_getattr (const char *path, struct stat *stbuf);
-int gn_open(const char *path, struct fuse_file_info *fi);
+int gn_open (const char *path, struct fuse_file_info *fi);
-int gn_read(const char *path, char *buf, size_t size, off_t offset,
- struct fuse_file_info *fi);
+int gn_read (const char *path, char *buf, size_t size, off_t offset,
+ struct fuse_file_info *fi);
-int gn_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
- off_t offset, struct fuse_file_info *fi);
+int gn_readdir (const char *path, void *buf, fuse_fill_dir_t filler,
+ off_t offset, struct fuse_file_info *fi);
-int gn_mknod(const char *path, mode_t mode, dev_t rdev);
+int gn_mknod (const char *path, mode_t mode, dev_t rdev);
-int gn_mkdir(const char *path, mode_t mode);
+int gn_mkdir (const char *path, mode_t mode);
-int gn_unlink(const char *path);
+int gn_unlink (const char *path);
-int gn_rmdir(const char *path);
+int gn_rmdir (const char *path);
-int gn_rename(const char *from, const char *to);
+int gn_rename (const char *from, const char *to);
-int gn_truncate(const char *path, off_t size);
+int gn_truncate (const char *path, off_t size);
-int gn_write(const char *path, const char *buf, size_t size, off_t offset,
- struct fuse_file_info *fi);
+int gn_write (const char *path, const char *buf, size_t size, off_t offset,
+ struct fuse_file_info *fi);
-int gn_release(const char *path, struct fuse_file_info *fi);
+int gn_release (const char *path, struct fuse_file_info *fi);
-int gn_utimens(const char *path, const struct timespec ts[2]);
+int gn_utimens (const char *path, const struct timespec ts[2]);
#endif
diff --git a/src/fuse/mutex.h b/src/fuse/mutex.h
index 5381b9d..b007f42 100644
--- a/src/fuse/mutex.h
+++ b/src/fuse/mutex.h
@@ -51,15 +51,15 @@ struct GNUNET_Mutex *
GNUNET_mutex_create (int isRecursive);
-void
+void
GNUNET_mutex_destroy (struct GNUNET_Mutex *mutex);
-void
+void
GNUNET_mutex_lock (struct GNUNET_Mutex *mutex);
-void
+void
GNUNET_mutex_unlock (struct GNUNET_Mutex *mutex);
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnunet-fuse] 01/12: add mailmap, (continued)
- [gnunet-fuse] 01/12: add mailmap, gnunet, 2019/11/19
- [gnunet-fuse] 04/12: capitalize operating systems., gnunet, 2019/11/19
- [gnunet-fuse] 05/12: extend bootstrap script for uncrustify, gnunet, 2019/11/19
- [gnunet-fuse] 02/12: configure: remove cpp, add uncrustify check., gnunet, 2019/11/19
- [gnunet-fuse] 08/12: fix copy paste mistake., gnunet, 2019/11/19
- [gnunet-fuse] 03/12: add make pretty., gnunet, 2019/11/19
- [gnunet-fuse] 07/12: gitignore uncrustify.cfg, gnunet, 2019/11/19
- [gnunet-fuse] 06/12: add submodule, gnunet, 2019/11/19
- [gnunet-fuse] 09/12: configure: maybe make fuse detection more portable., gnunet, 2019/11/19
- [gnunet-fuse] 11/12: configure for fuse., gnunet, 2019/11/19
- [gnunet-fuse] 10/12: lint,
gnunet <=
- [gnunet-fuse] 12/12: mutex: pthread_np is not widespread on *BSD. FreeBSD points out that the functions we are using are deprecated and pthread functions should be used instead. Since we use them for Solaris, move the BSD define to them. We should instead turn this into an else, as listing N + 1 operating systems definitions is bad style, for now just see if this is usable. Furthermore assume that pthread_np exists on Linux - which seems to be unnecessary because this was previously guarded by BSD., gnunet, 2019/11/19