Skip to content

Commit

Permalink
Use (char *) for fsname and subtype
Browse files Browse the repository at this point in the history
Attempt to fix #19
  • Loading branch information
probonopd authored Oct 28, 2023
1 parent 9594e2b commit 0a6ec10
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/runtime/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,12 +901,13 @@ int fusefs_main(int argc, char* argv[], void (* mounted)(void)) {

int err;
sqfs_ll* ll;

struct fuse_opt fuse_opts[] = {
{"offset=%zu", offsetof(sqfs_opts, offset), 0},
{"timeout=%u", offsetof(sqfs_opts, idle_timeout_secs), 0},
{"fsname=%s", "squashfuse", 0},
{"subtype=%s", "squashfuse", 0},
FUSE_OPT_END
{"offset=%zu", offsetof(sqfs_opts, offset), 0},
{"timeout=%u", offsetof(sqfs_opts, idle_timeout_secs), 0},
{"fsname=%s", (char *)"squashfuse", 0},
{"subtype=%s", (char *)"squashfuse", 0},
FUSE_OPT_END
};

struct fuse_lowlevel_ops sqfs_ll_ops;
Expand Down

0 comments on commit 0a6ec10

Please sign in to comment.