From d9f460043b9d3e62b6b5ff8e07c214805996b173 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Sun, 1 Mar 2020 20:31:41 +0100 Subject: [PATCH] switched to webfuse 0.2.0 --- .travis.yml | 4 ++-- README.md | 4 ++-- src/static_filesystem/main.c | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff0e18a..4774ca5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,9 +41,9 @@ before_install: - cd .. - cd .. # libwebfuse - - wget https://github.com/falk-werner/webfuse/archive/master.tar.gz -O webfuse.tar.gz + - wget https://github.com/falk-werner/webfuse/archive/v0.2.0.tar.gz -O webfuse.tar.gz - tar -xf webfuse.tar.gz - - cd webfuse-master + - cd webfuse-0.2.0 - mkdir .build - cd .build - cmake -DWITHOUT_ADAPTER=ON .. diff --git a/README.md b/README.md index d369970..a975141 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ To install dependecies, see below. #### webfuse - wget https://github.com/falk-werner/webfuse/archive/master.tar.gz -O webfuse.tar.gz + wget https://github.com/falk-werner/webfuse/archive/v0.2.0.tar.gz -O webfuse.tar.gz tar -xf webfuse.tar.gz - cd webfuse-master + cd webfuse-0.2.0 mkdir .build cd .build cmake -DWITHOUT_ADAPTER=ON .. diff --git a/src/static_filesystem/main.c b/src/static_filesystem/main.c index 8cfc66f..6d0b6f7 100644 --- a/src/static_filesystem/main.c +++ b/src/static_filesystem/main.c @@ -80,13 +80,13 @@ int main(int argc, char* argv[]) { struct wfp_client_config * config = wfp_client_config_create(); - struct wfp_static_filesystem * fs = wfp_static_filesystem_create(config); - wfp_static_filesystem_add_text(fs, "brummni/hello_world.txt", 0444, "Hello, World!\n"); - wfp_static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Bob!\n"); - wfp_static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Alice!\n"); - wfp_static_filesystem_add_text(fs, "bla/hello_world.txt", 0444, "Hello, World!\n"); - wfp_static_filesystem_add_text(fs, "foo.txt", 0444, "foo\n"); - wfp_static_filesystem_add_text(fs, "bar.txt", 0444, "bar\n"); + struct static_filesystem * fs = static_filesystem_create(config); + static_filesystem_add_text(fs, "brummni/hello_world.txt", 0444, "Hello, World!\n"); + static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Bob!\n"); + static_filesystem_add_text(fs, "brummni/hello_bob.txt", 0444, "Hello, Alice!\n"); + static_filesystem_add_text(fs, "bla/hello_world.txt", 0444, "Hello, World!\n"); + static_filesystem_add_text(fs, "foo.txt", 0444, "foo\n"); + static_filesystem_add_text(fs, "bar.txt", 0444, "bar\n"); struct wfp_client * client = wfp_client_create(config); wfp_client_connect(client, args.url); @@ -97,7 +97,7 @@ int main(int argc, char* argv[]) } wfp_client_dispose(client); - wfp_static_filesystem_dispose(fs); + static_filesystem_dispose(fs); wfp_client_config_dispose(config); }