From 45e67188d6615820f5bb39cb6890c5b4dfca83c4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 16 Jun 2008 14:55:06 +0200 Subject: 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". --- src/dd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dd.c') diff --git a/src/dd.c b/src/dd.c index d811d245d..ead957464 100644 --- a/src/dd.c +++ b/src/dd.c @@ -236,7 +236,7 @@ struct symbol_value }; /* Conversion symbols, for conv="...". */ -static const struct symbol_value const conversions[] = +static struct symbol_value const conversions[] = { {"ascii", C_ASCII | C_TWOBUFS}, /* EBCDIC to ASCII. */ {"ebcdic", C_EBCDIC | C_TWOBUFS}, /* ASCII to EBCDIC. */ @@ -257,7 +257,7 @@ static const struct symbol_value const conversions[] = }; /* Flags, for iflag="..." and oflag="...". */ -static const struct symbol_value const flags[] = +static struct symbol_value const flags[] = { {"append", O_APPEND}, {"binary", O_BINARY}, @@ -275,7 +275,7 @@ static const struct symbol_value const flags[] = }; /* Status, for status="...". */ -static const struct symbol_value const statuses[] = +static struct symbol_value const statuses[] = { {"noxfer", STATUS_NOXFER}, {"", 0} -- cgit v1.2.3-54-g00ecf