diff options
author | June McEnroe <june@causal.agency> | 2019-05-10 16:29:50 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-05-10 16:29:50 -0400 |
commit | de2710da932e3d77c4e7776fcf65862b36ec5f62 (patch) | |
tree | a1292a7c2fe845329888b00835bb70f4d6661870 | |
parent | Add Parable of the Sower (diff) | |
download | src-de2710da932e3d77c4e7776fcf65862b36ec5f62.tar.gz src-de2710da932e3d77c4e7776fcf65862b36ec5f62.zip |
Use val instead of suboptarg
suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure?
Diffstat (limited to '')
-rw-r--r-- | bin/hi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c index 6fab0a59..444e867a 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -679,7 +679,7 @@ int main(int argc, char *argv[]) { while (optarg[0]) { key = getsubopt(&optarg, (char *const *)OptionKey, &val); if (key >= OptionLen) { - errx(EX_USAGE, "no such option %s", suboptarg); + errx(EX_USAGE, "no such option %s", val); } opts[key] = (val ? val : ""); } |