aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/util/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supplemental/util/options.c b/src/supplemental/util/options.c
index d8f78deb..a8cc969d 100644
--- a/src/supplemental/util/options.c
+++ b/src/supplemental/util/options.c
@@ -90,7 +90,7 @@ nng_opts_parse(int argc, const char **argv, const nng_optspec *opts, int *val,
break;
default:
// Ambiguous (not match)
- return (NNG_EINVAL);
+ return (NNG_EAMBIGUOUS);
break;
}
@@ -113,7 +113,7 @@ nng_opts_parse(int argc, const char **argv, const nng_optspec *opts, int *val,
} else {
i++;
if (i >= argc) {
- return (NNG_EINVAL);
+ return (NNG_ENOARG);
}
*optarg = argv[i];
}