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/uname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/uname.c') diff --git a/src/uname.c b/src/uname.c index 57778b919..3870dfa3d 100644 --- a/src/uname.c +++ b/src/uname.c @@ -86,7 +86,7 @@ /* Operating system. */ #define PRINT_OPERATING_SYSTEM 128 -static const struct option const uname_long_options[] = +static struct option const uname_long_options[] = { {"all", no_argument, NULL, 'a'}, {"kernel-name", no_argument, NULL, 's'}, @@ -104,7 +104,7 @@ static const struct option const uname_long_options[] = {NULL, 0, NULL, 0} }; -static const struct option const arch_long_options[] = +static struct option const arch_long_options[] = { {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, -- cgit v1.2.3-54-g00ecf