diff options
author | jilles <jilles@FreeBSD.org> | 2016-01-07 23:13:20 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2016-01-07 23:13:20 +0000 |
commit | acacb5074b2237806e9955d5aeafb3cbac26a80d (patch) | |
tree | c20ea8b5ec4098e9f3256f758d8c0867eb765b7f /bin/sh/expand.c | |
parent | 66aa33e3b54566ac437dc5e07c902034dd158713 (diff) | |
download | FreeBSD-src-acacb5074b2237806e9955d5aeafb3cbac26a80d.zip FreeBSD-src-acacb5074b2237806e9955d5aeafb3cbac26a80d.tar.gz |
sh: Reduce size of options table.
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r-- | bin/sh/expand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 59ba549..c661541 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -951,8 +951,8 @@ varvalue(const char *name, int quoted, int subtype, int flag, case '-': p = buf; for (i = 0 ; i < NSHORTOPTS ; i++) { - if (optlist[i].val) - *p++ = optlist[i].letter; + if (optval[i]) + *p++ = optletter[i]; } *p = '\0'; strtodest(buf, flag, subtype, quoted, dst); |