aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-08-29 21:58:12 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-08-29 21:58:12 +0300
commit187f81febdf5a52d1c646bd83a10c9f03d13947b (patch)
tree17ada79a301f40c22a6468ff562d1a033dcb6285 /getopt.c
parent4af2316a20b11ae467caf4c78cfcbe9ad5f2cf1b (diff)
parent0b8ef2cbc3e72b40046cd07f56e1cffb27690827 (diff)
downloadegawk-187f81febdf5a52d1c646bd83a10c9f03d13947b.tar.gz
egawk-187f81febdf5a52d1c646bd83a10c9f03d13947b.tar.bz2
egawk-187f81febdf5a52d1c646bd83a10c9f03d13947b.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/getopt.c b/getopt.c
index 7679991d..bab52a05 100644
--- a/getopt.c
+++ b/getopt.c
@@ -236,7 +236,7 @@ exchange (char **argv, struct _getopt_data *d)
{
/* Bottom segment is the short one. */
int len = middle - bottom;
- register int i;
+ int i;
/* Swap it with the top part of the top segment. */
for (i = 0; i < len; i++)
@@ -253,7 +253,7 @@ exchange (char **argv, struct _getopt_data *d)
{
/* Top segment is the short one. */
int len = top - middle;
- register int i;
+ int i;
/* Swap it with the bottom part of the bottom segment. */
for (i = 0; i < len; i++)
@@ -574,8 +574,8 @@ _getopt_internal_r (int argc, char *const *argv, const char *optstring,
|| pfound->flag != p->flag
|| pfound->val != p->val)
{
- /* Second or later nonexact match found. */
- struct option_list *newp = malloc (sizeof (*newp));
+ /* Second or later nonexact match found. */
+ struct option_list *newp = alloca (sizeof (*newp));
newp->p = p;
newp->needs_free = 1;
newp->next = ambig_list;