diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-10-25 13:55:46 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-10-25 13:57:15 +0100 |
commit | fb8df91b424191f955eebcc21d54e96fa3f6f686 (patch) | |
tree | c31b5b8c80baaf57af8b44342ee714e9cde9c6ed | |
parent | Relax mode checking in unlink as it is actually too strict (diff) | |
download | netfs-fb8df91b424191f955eebcc21d54e96fa3f6f686.tar.bz2 netfs-fb8df91b424191f955eebcc21d54e96fa3f6f686.tar.xz netfs-fb8df91b424191f955eebcc21d54e96fa3f6f686.zip |
Add missing override attribute in fuseApp
-rw-r--r-- | netfs/fuse/fuseApp.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/netfs/fuse/fuseApp.h b/netfs/fuse/fuseApp.h index 7e5f279..27acd3b 100644 --- a/netfs/fuse/fuseApp.h +++ b/netfs/fuse/fuseApp.h @@ -44,8 +44,8 @@ namespace NetFS { ~FuseApp(); private: - void * init (struct fuse_conn_info * info); - int opt_parse(void *, const char * arg, int key, struct fuse_args *); + void * init (struct fuse_conn_info * info) override; + int opt_parse(void *, const char * arg, int key, struct fuse_args *) override; void connectSession(); void connectToService(); @@ -55,36 +55,36 @@ namespace NetFS { public: // misc - int access(const char * p, int a); - int getattr(const char * p, struct stat * s); - int fgetattr(const char *, struct stat *, struct fuse_file_info *); - int chmod(const char *, mode_t); - int chown(const char *, uid_t, gid_t); - int link(const char *, const char *); - int readlink(const char *, char *, size_t); - int rename(const char *, const char *); - int symlink(const char *, const char *); - int unlink(const char *); - int utimens(const char *, const struct timespec tv[2]); - int mknod(const char *, mode_t, dev_t); + int access(const char * p, int a) override; + int getattr(const char * p, struct stat * s) override; + int fgetattr(const char *, struct stat *, struct fuse_file_info *) override; + int chmod(const char *, mode_t) override; + int chown(const char *, uid_t, gid_t) override; + int link(const char *, const char *) override; + int readlink(const char *, char *, size_t) override; + int rename(const char *, const char *) override; + int symlink(const char *, const char *) override; + int unlink(const char *) override; + int utimens(const char *, const struct timespec tv[2]) override; + int mknod(const char *, mode_t, dev_t) override; // dirs - int opendir(const char * p, struct fuse_file_info * fi); - int releasedir(const char *, struct fuse_file_info * fi); - int readdir(const char *, void * buf, fuse_fill_dir_t filler, off_t, struct fuse_file_info * fi); - int mkdir(const char *, mode_t); - int rmdir(const char *); + int opendir(const char * p, struct fuse_file_info * fi) override; + int releasedir(const char *, struct fuse_file_info * fi) override; + int readdir(const char *, void * buf, fuse_fill_dir_t filler, off_t, struct fuse_file_info * fi) override; + int mkdir(const char *, mode_t) override; + int rmdir(const char *) override; // files - int open(const char * p, struct fuse_file_info * fi); - int create(const char *, mode_t, struct fuse_file_info *); - int release(const char *, struct fuse_file_info * fi); - int read(const char *, char * buf, size_t s, off_t o, struct fuse_file_info * fi); - int write(const char *, const char * buf, size_t s, off_t o, struct fuse_file_info * fi); - int truncate(const char *, off_t); - int ftruncate(const char *, off_t, struct fuse_file_info *); + int open(const char * p, struct fuse_file_info * fi) override; + int create(const char *, mode_t, struct fuse_file_info *) override; + int release(const char *, struct fuse_file_info * fi) override; + int read(const char *, char * buf, size_t s, off_t o, struct fuse_file_info * fi) override; + int write(const char *, const char * buf, size_t s, off_t o, struct fuse_file_info * fi) override; + int truncate(const char *, off_t) override; + int ftruncate(const char *, off_t, struct fuse_file_info *) override; // fs - int statfs(const char *, struct statvfs *); + int statfs(const char *, struct statvfs *) override; // stuff - int onError(const std::exception & err) throw(); + int onError(const std::exception & err) throw() override; virtual struct fuse_context * fuse_get_context() = 0; |