aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Reuben Hawkins <reubenhwk@gmail.com>2011-05-20 07:01:38 -0700
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2011-05-23 11:15:56 +0200
commit1193a39c0869a3608f22472735bcffdcccb6b2a5 (patch)
tree18f62331640b1d263ecc496f3c1eed1a4c16e037 /example
parentd523ae8421eb506dbb8660e015c25fa9b16d0507 (diff)
cleaning up warnings
fprintf(stderr, whatever); -> fprintf(stderr, "%s", whatever); checking return values on chdir and lockf where we weren't already modified: example/cusexmp.c modified: example/fioclient.c modified: util/fusermount.c
Diffstat (limited to 'example')
-rw-r--r--example/cusexmp.c2
-rw-r--r--example/fioclient.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/cusexmp.c b/example/cusexmp.c
index 48ccf8c..900c985 100644
--- a/example/cusexmp.c
+++ b/example/cusexmp.c
@@ -247,7 +247,7 @@ static int cusexmp_process_arg(void *data, const char *arg, int key,
switch (key) {
case 0:
param->is_help = 1;
- fprintf(stderr, usage);
+ fprintf(stderr, "%s", usage);
return fuse_opt_add_arg(outargs, "-ho");
default:
return 1;
diff --git a/example/fioclient.c b/example/fioclient.c
index c056186..5f05525 100644
--- a/example/fioclient.c
+++ b/example/fioclient.c
@@ -117,6 +117,6 @@ int main(int argc, char **argv)
}
usage:
- fprintf(stderr, usage);
+ fprintf(stderr, "%s", usage);
return 1;
}