repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'libnfs-1.9.6' of https://github.com/sahlberg/libnfs into upstream
[deb_libnfs.git]
/
examples
/
fuse_nfs.c
diff --git
a/examples/fuse_nfs.c
b/examples/fuse_nfs.c
index 261a6aabd28c5b540ab78dfa4b2bc7fa69fa1f41..28449eec4c88c52d7520e5cf4b4b4668ea7d23ac 100644
(file)
--- a/
examples/fuse_nfs.c
+++ b/
examples/fuse_nfs.c
@@
-191,7
+191,7
@@
static struct fuse_operations nfs_oper = {
void print_usage(char *name)
{
void print_usage(char *name)
{
- printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url]
mountpoint
\n",
+ printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url]
[-m|--mountpoint=mountpoint]
\n",
name);
exit(0);
}
name);
exit(0);
}
@@
-248,11
+248,13
@@
int main(int argc, char *argv[])
if (url == NULL) {
fprintf(stderr, "-n was not specified.\n");
if (url == NULL) {
fprintf(stderr, "-n was not specified.\n");
+ print_usage(argv[0]);
ret = 10;
goto finished;
}
if (mnt == NULL) {
fprintf(stderr, "-m was not specified.\n");
ret = 10;
goto finished;
}
if (mnt == NULL) {
fprintf(stderr, "-m was not specified.\n");
+ print_usage(argv[0]);
ret = 10;
goto finished;
}
ret = 10;
goto finished;
}