summaryrefslogtreecommitdiff
path: root/lib/librefuse
diff options
context:
space:
mode:
authoragc <agc@NetBSD.org>2007-04-17 06:34:48 +0000
committeragc <agc@NetBSD.org>2007-04-17 06:34:48 +0000
commit1e1fbd91dac2aff0891fd4e31139d1c2c771ea2d (patch)
treee1d5f6663a6c21437129b1263bb8be7265efabee /lib/librefuse
parent8a06b9bff09320d679109d9dc6555f902c3d44b8 (diff)
The error return code from fuse_opt_add_arg() and fuse_opt_insert_arg() is
actually -1, not 1. Fix the broken sewing machine, and make it sew.
Diffstat (limited to 'lib/librefuse')
-rw-r--r--lib/librefuse/refuse_opt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librefuse/refuse_opt.c b/lib/librefuse/refuse_opt.c
index a2bc461d1e6..2fb2a756532 100644
--- a/lib/librefuse/refuse_opt.c
+++ b/lib/librefuse/refuse_opt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: refuse_opt.c,v 1.8 2007/04/17 00:25:21 xtraeme Exp $ */
+/* $NetBSD: refuse_opt.c,v 1.9 2007/04/17 06:34:48 agc Exp $ */
/*-
* Copyright (c) 2007 Juan Romero Pardines.
@@ -111,7 +111,7 @@ fuse_opt_add_arg(struct fuse_args *args, const char *arg)
} else if (args->allocated == args->argc) {
args->allocated += 10;
RENEW(char *, args->argv, args->allocated,
- "fuse_opt_add_arg", return 1);
+ "fuse_opt_add_arg", return -1);
}
DPRINTF(("%s: arguments passed: [arg:%s]\n", __func__, arg));
args->argv[args->argc++] = strdup(arg);
@@ -140,7 +140,7 @@ fuse_opt_insert_arg(struct fuse_args *args, int pos, const char *arg)
DPRINTF(("%s: arguments passed: [pos=%d] [arg=%s]\n",
__func__, pos, arg));
ALLOC(char *, args->argv, args->allocated, args->argc, 10, 10,
- "fuse_opt_insert_org", return 1);
+ "fuse_opt_insert_org", return -1);
for (i = args->argc++ ; i > pos ; --i) {
args->argv[i] = args->argv[i - 1];
}