summaryrefslogtreecommitdiff
path: root/libfusepp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-07-20 01:46:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-07-20 01:46:12 +0100
commitc443841605388835d2751f01f6d209ff3cbddd57 (patch)
tree025aa589d5cf079f288ab88a740205251918379d /libfusepp
parentStart mock clients with a real configuration file that has specific parts rep... (diff)
downloadnetfs-c443841605388835d2751f01f6d209ff3cbddd57.tar.bz2
netfs-c443841605388835d2751f01f6d209ff3cbddd57.tar.xz
netfs-c443841605388835d2751f01f6d209ff3cbddd57.zip
Switch to the StringSeq interface where possible because it's considerably less annoying
Diffstat (limited to 'libfusepp')
-rw-r--r--libfusepp/fuseAppBase.cpp2
-rw-r--r--libfusepp/fuseAppBase.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/libfusepp/fuseAppBase.cpp b/libfusepp/fuseAppBase.cpp
index a1ea491..49f2d6b 100644
--- a/libfusepp/fuseAppBase.cpp
+++ b/libfusepp/fuseAppBase.cpp
@@ -198,7 +198,7 @@ void FuseAppBase::fuseDestroy(void *)
}
struct fuse_args
-FuseAppBase::runint(int & argc, char** & argv)
+FuseAppBase::runint(int argc, char ** argv)
{
struct fuse_opt fuse_opts[] = {
{ NULL, 0, 0 }
diff --git a/libfusepp/fuseAppBase.h b/libfusepp/fuseAppBase.h
index d76fbff..ccd2027 100644
--- a/libfusepp/fuseAppBase.h
+++ b/libfusepp/fuseAppBase.h
@@ -57,11 +57,11 @@ class FuseAppBase {
virtual int onError(const std::exception & err) throw();
virtual int fuse_opt_parse(struct fuse_args *args, void *data, const struct fuse_opt opts[], fuse_opt_proc_t proc) = 0;
- virtual int main(int &, char **, const struct fuse_operations *) = 0;
+ virtual int main(int, char **, const struct fuse_operations *) = 0;
#define GetHelper(func) getHelper<&FuseAppBase::func>(typeid(&FuseAppBase::func) != typeid(&FuseApp::func))
template <typename FuseApp>
- static int run(int & argc, char** & argv, FuseApp * fa)
+ static int run(int argc, char ** argv, FuseApp * fa)
{
auto args = fa->runint(argc, argv);
struct fuse_operations operations = {
@@ -124,7 +124,7 @@ class FuseAppBase {
};
return fa->main(args.argc, args.argv, &operations);
}
- struct fuse_args runint(int &, char ** &);
+ struct fuse_args runint(int, char **);
private:
static void * fuseInit(struct fuse_conn_info *conn);