From 42f00b6e0c5eb0b3f5e9168c87bf9ff276673a4e Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Mon, 14 Dec 2015 01:29:37 -0600 Subject: libfuse: Fix cast for void* in fuse opts Change-Id: I3eb7dca2eba002a8bc96646e49bb3bd9fcfcf645 --- lib/fuse_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fuse_opt.c b/lib/fuse_opt.c index c793edf..78d3b32 100644 --- a/lib/fuse_opt.c +++ b/lib/fuse_opt.c @@ -233,7 +233,7 @@ static int process_opt(struct fuse_opt_context *ctx, if (call_proc(ctx, arg, opt->value, iso) == -1) return -1; } else { - void *var = (intptr_t *)ctx->data + opt->offset; + void *var = (char *)ctx->data + opt->offset; if (sep && opt->templ[sep + 1]) { const char *param = arg + sep; if (opt->templ[sep] == '=') -- cgit v1.2.3