diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-16 14:55:06 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-16 16:40:59 +0200 |
commit | 45e67188d6615820f5bb39cb6890c5b4dfca83c4 (patch) | |
tree | a5ef6fe5c6266ff8ee74ead1b50e7abada1c3bef /src/stty.c | |
parent | 3de15598304c141bdac5a3545874bab035536d88 (diff) | |
download | coreutils-45e67188d6615820f5bb39cb6890c5b4dfca83c4.tar.xz |
remove redundant const directives
In 1463824d8e7f72c31f1d803d7cfe2b608ccafc5c, I added some
missing "const" directives, as well as some new, redundant ones.
This removes the redundant ones. Pointed out by Eric Blake.
* base64.c, cat.c, chcon.c, chgrp.c, chmod.c, chown.c, comm.c:
* cp.c, csplit.c, cut.c, date.c, dd.c, df.c, dircolors.c, du.c:
* env.c, expand.c, fmt.c, fold.c, groups.c, head.c, id.c:
* install.c, join.c, kill.c, ln.c, ls.c, md5sum.c, mkdir.c:
* mkfifo.c, mknod.c, mktemp.c, mv.c, nice.c, nl.c, od.c:
* paste.c, pathchk.c, pinky.c, pr.c, ptx.c, readlink.c, rm.c:
* rmdir.c, runcon.c, seq.c, shred.c, shuf.c, sort.c, split.c:
* stat.c, stty.c, su.c, sum.c, tac.c, tail.c, tee.c, timeout.c:
* touch.c, tr.c, truncate.c, tty.c, uname.c, unexpand.c, uniq.c:
* wc.c, who.c: Remove redundant const directives.
* maint.mk (sc_const_long_option): Don't require redundant "const".
Diffstat (limited to 'src/stty.c')
-rw-r--r-- | src/stty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stty.c b/src/stty.c index 548923da4..5ac2cc6ea 100644 --- a/src/stty.c +++ b/src/stty.c @@ -204,7 +204,7 @@ struct mode_info unsigned long mask; /* Other bits to turn off for this mode. */ }; -static const struct mode_info const mode_info[] = +static struct mode_info const mode_info[] = { {"parenb", control, REV, PARENB, 0}, {"parodd", control, REV, PARODD, 0}, @@ -368,7 +368,7 @@ struct control_info /* Control characters. */ -static const struct control_info const control_info[] = +static struct control_info const control_info[] = { {"intr", CINTR, VINTR}, {"quit", CQUIT, VQUIT}, @@ -445,7 +445,7 @@ static int max_col; /* Current position, to know when to wrap. */ static int current_col; -static const struct option const longopts[] = +static struct option const longopts[] = { {"all", no_argument, NULL, 'a'}, {"save", no_argument, NULL, 'g'}, @@ -1716,7 +1716,7 @@ struct speed_map unsigned long int value; /* Numeric value. */ }; -static const struct speed_map const speeds[] = +static struct speed_map const speeds[] = { {"0", B0, 0}, {"50", B50, 50}, |