summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-02 17:47:32 +0200
committerJim Meyering <meyering@redhat.com>2008-06-02 17:47:32 +0200
commit434258ca739c0cd820f6359ee248ce2d196d302f (patch)
tree0742ed070ca09638eb2b9255a18adaf993b19305 /src
parenteebe7310143d24dd1b510b2df75ce776e70934ae (diff)
downloadcoreutils-434258ca739c0cd820f6359ee248ce2d196d302f.tar.xz
declare program_name consistently
* src/base64.c: Likewise. * src/basename.c: Likewise. * src/cat.c: Likewise. * src/chcon.c: Likewise. * src/chgrp.c: Likewise. * src/chmod.c: Likewise. * src/chown.c: Likewise. * src/chroot.c: Likewise. * src/cksum.c: Likewise. * src/comm.c: Likewise. * src/cp.c: Likewise. * src/csplit.c: Likewise. * src/cut.c: Likewise. * src/date.c: Likewise. * src/dd.c: Likewise. * src/df.c: Likewise. * src/dircolors.c: Likewise. * src/dirname.c: Likewise. * src/du.c: Likewise. * src/echo.c: Likewise. * src/env.c: Likewise. * src/expand.c: Likewise. * src/expr.c: Likewise. * src/factor.c: Likewise. * src/fmt.c: Likewise. * src/fold.c: Likewise. * src/groups.c: Likewise. * src/head.c: Likewise. * src/hostid.c: Likewise. * src/hostname.c: Likewise. * src/id.c: Likewise. * src/install.c: Likewise. * src/join.c: Likewise. * src/kill.c: Likewise. * src/link.c: Likewise. * src/ln.c: Likewise. * src/logname.c: Likewise. * src/ls.c: Likewise. * src/md5sum.c: Likewise. * src/mkdir.c: Likewise. * src/mkfifo.c: Likewise. * src/mknod.c: Likewise. * src/mktemp.c: Likewise. * src/mv.c: Likewise. * src/nice.c: Likewise. * src/nl.c: Likewise. * src/nohup.c: Likewise. * src/od.c: Likewise. * src/paste.c: Likewise. * src/pathchk.c: Likewise. * src/pinky.c: Likewise. * src/pr.c: Likewise. * src/printenv.c: Likewise. * src/printf.c: Likewise. * src/ptx.c: Likewise. * src/pwd.c: Likewise. * src/readlink.c: Likewise. * src/rm.c: Likewise. * src/rmdir.c: Likewise. * src/runcon.c: Likewise. * src/seq.c: Likewise. * src/setuidgid.c: Likewise. * src/shuf.c: Likewise. * src/sleep.c: Likewise. * src/sort.c: Likewise. * src/split.c: Likewise. * src/stat.c: Likewise. * src/stty.c: Likewise. * src/su.c: Likewise. * src/sum.c: Likewise. * src/sync.c: Likewise. * src/tac.c: Likewise. * src/tail.c: Likewise. * src/tee.c: Likewise. * src/test.c: Likewise. * src/timeout.c: Likewise. * src/touch.c: Likewise. * src/tr.c: Likewise. * src/true.c: Likewise. * src/tsort.c: Likewise. * src/tty.c: Likewise. * src/uname.c: Likewise. * src/unexpand.c: Likewise. * src/uniq.c: Likewise. * src/unlink.c: Likewise. * src/uptime.c: Likewise. * src/users.c: Likewise. * src/wc.c: Likewise. * src/who.c: Likewise. * src/whoami.c: Likewise. * src/yes.c: Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/base64.c2
-rw-r--r--src/basename.c2
-rw-r--r--src/cat.c2
-rw-r--r--src/chcon.c2
-rw-r--r--src/chgrp.c2
-rw-r--r--src/chmod.c2
-rw-r--r--src/chown.c2
-rw-r--r--src/chroot.c2
-rw-r--r--src/cksum.c2
-rw-r--r--src/comm.c2
-rw-r--r--src/cp.c2
-rw-r--r--src/csplit.c2
-rw-r--r--src/cut.c2
-rw-r--r--src/date.c2
-rw-r--r--src/dd.c2
-rw-r--r--src/df.c2
-rw-r--r--src/dircolors.c2
-rw-r--r--src/dirname.c2
-rw-r--r--src/du.c2
-rw-r--r--src/echo.c2
-rw-r--r--src/env.c2
-rw-r--r--src/expand.c2
-rw-r--r--src/expr.c2
-rw-r--r--src/factor.c2
-rw-r--r--src/fmt.c2
-rw-r--r--src/fold.c2
-rw-r--r--src/groups.c2
-rw-r--r--src/head.c2
-rw-r--r--src/hostid.c2
-rw-r--r--src/hostname.c2
-rw-r--r--src/id.c2
-rw-r--r--src/install.c2
-rw-r--r--src/join.c2
-rw-r--r--src/kill.c2
-rw-r--r--src/link.c2
-rw-r--r--src/ln.c2
-rw-r--r--src/logname.c2
-rw-r--r--src/ls.c2
-rw-r--r--src/md5sum.c2
-rw-r--r--src/mkdir.c2
-rw-r--r--src/mkfifo.c2
-rw-r--r--src/mknod.c2
-rw-r--r--src/mktemp.c2
-rw-r--r--src/mv.c2
-rw-r--r--src/nice.c2
-rw-r--r--src/nl.c2
-rw-r--r--src/nohup.c2
-rw-r--r--src/od.c2
-rw-r--r--src/paste.c2
-rw-r--r--src/pathchk.c2
-rw-r--r--src/pinky.c2
-rw-r--r--src/pr.c2
-rw-r--r--src/printenv.c2
-rw-r--r--src/printf.c2
-rw-r--r--src/ptx.c2
-rw-r--r--src/pwd.c2
-rw-r--r--src/readlink.c2
-rw-r--r--src/rm.c2
-rw-r--r--src/rmdir.c2
-rw-r--r--src/runcon.c2
-rw-r--r--src/seq.c2
-rw-r--r--src/setuidgid.c2
-rw-r--r--src/shuf.c2
-rw-r--r--src/sleep.c2
-rw-r--r--src/sort.c2
-rw-r--r--src/split.c2
-rw-r--r--src/stat.c2
-rw-r--r--src/stty.c2
-rw-r--r--src/su.c2
-rw-r--r--src/sum.c2
-rw-r--r--src/sync.c2
-rw-r--r--src/tac.c2
-rw-r--r--src/tail.c2
-rw-r--r--src/tee.c2
-rw-r--r--src/test.c2
-rw-r--r--src/timeout.c2
-rw-r--r--src/touch.c2
-rw-r--r--src/tr.c2
-rw-r--r--src/true.c2
-rw-r--r--src/tsort.c2
-rw-r--r--src/tty.c2
-rw-r--r--src/uname.c2
-rw-r--r--src/unexpand.c2
-rw-r--r--src/uniq.c2
-rw-r--r--src/unlink.c2
-rw-r--r--src/uptime.c2
-rw-r--r--src/users.c2
-rw-r--r--src/wc.c2
-rw-r--r--src/who.c2
-rw-r--r--src/whoami.c2
-rw-r--r--src/yes.c2
91 files changed, 91 insertions, 91 deletions
diff --git a/src/base64.c b/src/base64.c
index a3a73451e..fd9d114dd 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -38,7 +38,7 @@
#define AUTHORS proper_name ("Simon Josefsson")
/* The invocation name of this program. */
-char *program_name;
+char const *program_name;
static const struct option long_options[] = {
{"decode", no_argument, 0, 'd'},
diff --git a/src/basename.c b/src/basename.c
index ca3d34797..fe056fcd6 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -40,7 +40,7 @@
#define AUTHORS proper_name ("FIXME unknown")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/cat.c b/src/cat.c
index 87bcc368b..fd6c9df0d 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -52,7 +52,7 @@
#define max(h,i) ((h) > (i) ? (h) : (i))
/* Name under which this program was invoked. */
-char *program_name;
+char const *program_name;
/* Name of input file. May be "-". */
static char const *infile;
diff --git a/src/chcon.c b/src/chcon.c
index 2642bf4a9..dacce2b45 100644
--- a/src/chcon.c
+++ b/src/chcon.c
@@ -56,7 +56,7 @@ enum Verbosity
};
/* The name the program was run with. */
-char *program_name;
+char const *program_name;
/* If nonzero, and the systems has support for it, change the context
of symbolic links rather than any files they point to. */
diff --git a/src/chgrp.c b/src/chgrp.c
index d09b84125..c42fad87f 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -43,7 +43,7 @@
#endif
/* The name the program was run with. */
-char *program_name;
+char const *program_name;
/* The argument to the --reference option. Use the group ID of this file.
This file must exist. */
diff --git a/src/chmod.c b/src/chmod.c
index e8a795f24..8002ef5f3 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -59,7 +59,7 @@ enum Verbosity
};
/* The name the program was run with. */
-char *program_name;
+char const *program_name;
/* The desired change to the mode. */
static struct mode_change *change;
diff --git a/src/chown.c b/src/chown.c
index 5152de569..02e0148f7 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -48,7 +48,7 @@
proper_name ("Jim Meyering")
/* The name the program was run with. */
-char *program_name;
+char const *program_name;
/* The argument to the --reference option. Use the owner and group IDs
of this file. This file must exist. */
diff --git a/src/chroot.c b/src/chroot.c
index 85053c974..8081b1696 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("Roland McGrath")
/* The name this program was run with, for error messages. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/cksum.c b/src/cksum.c
index 52c34352a..6f1151484 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -114,7 +114,7 @@ main (void)
# define BUFLEN (1 << 16)
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static uint_fast32_t const crctab[256] =
{
diff --git a/src/comm.c b/src/comm.c
index 267ec789f..4700ca00e 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -40,7 +40,7 @@
#define min(x, y) ((x) < (y) ? (x) : (y))
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* True if the LC_COLLATE locale is hard. */
static bool hard_LC_COLLATE;
diff --git a/src/cp.c b/src/cp.c
index 0a33ec31e..66304492a 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -89,7 +89,7 @@ enum
#define INITIAL_ENTRY_TAB_SIZE 70
/* The invocation name of this program. */
-char *program_name;
+char const *program_name;
/* True if the kernel is SELinux enabled. */
static bool selinux_enabled;
diff --git a/src/csplit.c b/src/csplit.c
index f8c3c025f..7d9904c3e 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -129,7 +129,7 @@ static void save_line_to_file (const struct cstring *line);
void usage (int status);
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Start of buffer list. */
static struct buffer_record *head = NULL;
diff --git a/src/cut.c b/src/cut.c
index 554e790c8..a91cca716 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -121,7 +121,7 @@ enum operating_mode
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static enum operating_mode operating_mode;
diff --git a/src/date.c b/src/date.c
index 8191ff638..36b282695 100644
--- a/src/date.c
+++ b/src/date.c
@@ -78,7 +78,7 @@ ARGMATCH_VERIFY (time_spec_string, time_spec);
static char const rfc_2822_format[] = "%a, %d %b %Y %H:%M:%S %z";
/* The name this program was run with, for error messages. */
-char *program_name;
+char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
diff --git a/src/dd.c b/src/dd.c
index b1635b875..947e6876c 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -129,7 +129,7 @@ enum
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* The name of the input file, or NULL for the standard input. */
static char const *input_file = NULL;
diff --git a/src/df.c b/src/df.c
index 20b8f2158..2b320cf98 100644
--- a/src/df.c
+++ b/src/df.c
@@ -43,7 +43,7 @@
proper_name ("Paul Eggert")
/* Name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, show inode information. */
static bool inode_format;
diff --git a/src/dircolors.c b/src/dircolors.c
index d51d409db..55cbd2616 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -87,7 +87,7 @@ static struct option const long_options[] =
{NULL, 0, NULL, 0}
};
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/dirname.c b/src/dirname.c
index 928a663c6..3c93d0357 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -36,7 +36,7 @@
proper_name ("Jim Meyering")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/du.c b/src/du.c
index b67b89cea..8b04b65d1 100644
--- a/src/du.c
+++ b/src/du.c
@@ -127,7 +127,7 @@ struct dulevel
};
/* Name under which this program was invoked. */
-char *program_name;
+char const *program_name;
/* If true, display counts for all files, not just directories. */
static bool opt_all = false;
diff --git a/src/echo.c b/src/echo.c
index 1f3bc7785..4b8f56071 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -51,7 +51,7 @@ enum { DEFAULT_ECHO_TO_XPG = false };
#endif
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/env.c b/src/env.c
index bf8ceb2ca..5103cc927 100644
--- a/src/env.c
+++ b/src/env.c
@@ -97,7 +97,7 @@ int putenv ();
extern char **environ;
/* The name by which this program was run. */
-char *program_name;
+char const *program_name;
static struct option const longopts[] =
{
diff --git a/src/expand.c b/src/expand.c
index 17747a5b7..2cce8fbea 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -52,7 +52,7 @@
#define OUTPUT_BLOCK 256
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, convert blanks even after nonblank characters have been
read on the line. */
diff --git a/src/expr.c b/src/expr.c
index a451ca708..e658402c5 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -82,7 +82,7 @@ typedef struct valinfo VALUE;
static char **args;
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static VALUE *eval (bool);
static bool nomoreargs (void);
diff --git a/src/factor.c b/src/factor.c
index c116acdbb..681db362d 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -60,7 +60,7 @@ static const unsigned char wheel_tab[] =
#define WHEEL_END (wheel_tab + (sizeof wheel_tab / sizeof wheel_tab[0]))
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/fmt.c b/src/fmt.c
index 59f71ca02..1f4e1da52 100644
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -168,7 +168,7 @@ static void put_word (WORD *w);
static void put_space (int space);
/* The name this program was run with. */
-const char *program_name;
+char const *program_name;
/* Option values. */
diff --git a/src/fold.c b/src/fold.c
index d0d1f82f2..8d63a8b52 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -35,7 +35,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If nonzero, try to break on whitespace. */
static bool break_spaces;
diff --git a/src/groups.c b/src/groups.c
index f61e07ab0..c67ac6e0a 100644
--- a/src/groups.c
+++ b/src/groups.c
@@ -30,7 +30,7 @@
#include "group-list.h"
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "groups"
diff --git a/src/head.c b/src/head.c
index 4e9beea4c..a52f151cf 100644
--- a/src/head.c
+++ b/src/head.c
@@ -65,7 +65,7 @@ enum header_mode
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Have we ever read standard input? */
static bool have_read_stdin;
diff --git a/src/hostid.c b/src/hostid.c
index c6bc70f2f..e481c1c1e 100644
--- a/src/hostid.c
+++ b/src/hostid.c
@@ -34,7 +34,7 @@
#define AUTHORS proper_name ("Jim Meyering")
/* The name this program was run with, for error messages. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/hostname.c b/src/hostname.c
index e57de8189..23aab17b6 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -51,7 +51,7 @@ sethostname (char *name, size_t namelen)
#endif
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/id.c b/src/id.c
index 533f42868..53cb0f47f 100644
--- a/src/id.c
+++ b/src/id.c
@@ -45,7 +45,7 @@ static void print_user (uid_t uid);
static void print_full_info (const char *username);
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, output user/group name instead of ID number. -n */
static bool use_name = false;
diff --git a/src/install.c b/src/install.c
index 10fcae71f..1d902d6ee 100644
--- a/src/install.c
+++ b/src/install.c
@@ -93,7 +93,7 @@ static int make_ancestor (char const *dir, char const *component,
void usage (int status);
/* The name this program was run with, for error messages. */
-char *program_name;
+char const *program_name;
/* The user name that will own the files, or NULL to make the owner
the current user ID. */
diff --git a/src/join.c b/src/join.c
index c14cc1e66..111f9714c 100644
--- a/src/join.c
+++ b/src/join.c
@@ -80,7 +80,7 @@ struct seq
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* The previous line read from each file. */
static struct line *prevline[2];
diff --git a/src/kill.c b/src/kill.c
index bd5d9b291..21799076b 100644
--- a/src/kill.c
+++ b/src/kill.c
@@ -61,7 +61,7 @@
#endif
/* The name this program was run with, for error messages. */
-char *program_name;
+char const *program_name;
static char const short_options[] =
"0::1::2::3::4::5::6::7::8::9::"
diff --git a/src/link.c b/src/link.c
index e4b901d97..eeb79e7ff 100644
--- a/src/link.c
+++ b/src/link.c
@@ -36,7 +36,7 @@
#define AUTHORS proper_name ("Michael Stone")
/* Name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/ln.c b/src/ln.c
index 9523560f5..4b9c9949a 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -58,7 +58,7 @@
#endif
/* The name by which the program was run, for error messages. */
-char *program_name;
+char const *program_name;
/* FIXME: document */
static enum backup_type backup_type;
diff --git a/src/logname.c b/src/logname.c
index 11c6a35ed..ec894e216 100644
--- a/src/logname.c
+++ b/src/logname.c
@@ -30,7 +30,7 @@
#define AUTHORS proper_name ("FIXME: unknown")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/ls.c b/src/ls.c
index 653a905fa..9a8ad2def 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -245,7 +245,7 @@ static void parse_ls_color (void);
void usage (int status);
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Initial size of hash table.
Most hierarchies are likely to be shallower than this. */
diff --git a/src/md5sum.c b/src/md5sum.c
index c0b5ed571..358497280 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -121,7 +121,7 @@ static bool warn = false;
static bool quiet = false;
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
diff --git a/src/mkdir.c b/src/mkdir.c
index d865407b2..c2d52deb5 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -37,7 +37,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static struct option const longopts[] =
{
diff --git a/src/mkfifo.c b/src/mkfifo.c
index cfe9b51be..5befd4590 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static struct option const longopts[] =
{
diff --git a/src/mknod.c b/src/mknod.c
index b67d88cd2..0cd2d2705 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -34,7 +34,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static struct option const longopts[] =
{
diff --git a/src/mktemp.c b/src/mktemp.c
index c25f4b3d7..114fdc2b1 100644
--- a/src/mktemp.c
+++ b/src/mktemp.c
@@ -36,7 +36,7 @@
static const char *default_template = "tmp.XXXXXXXXXX";
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
diff --git a/src/mv.c b/src/mv.c
index ffd791438..090541a4c 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -57,7 +57,7 @@ enum
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Remove any trailing slashes from each SOURCE argument. */
static bool remove_trailing_slashes;
diff --git a/src/nice.c b/src/nice.c
index 03e9e6a8b..3981a7163 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -56,7 +56,7 @@
#endif
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static struct option const longopts[] =
{
diff --git a/src/nl.c b/src/nl.c
index 6154ab6e3..24e9f9861 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -62,7 +62,7 @@ enum section
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Format of body lines (-b). */
static char const *body_type = "t";
diff --git a/src/nohup.c b/src/nohup.c
index 832659c0a..da639f225 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -43,7 +43,7 @@ enum
NOHUP_FAILURE = 127
};
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/od.c b/src/od.c
index 1007f8c90..9b2f72260 100644
--- a/src/od.c
+++ b/src/od.c
@@ -114,7 +114,7 @@ struct tspec
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Convert the number of 8-bit bytes of a binary representation to
the number of characters (digits + sign if the type is signed)
diff --git a/src/paste.c b/src/paste.c
index cdecd557e..cc61a09d5 100644
--- a/src/paste.c
+++ b/src/paste.c
@@ -55,7 +55,7 @@
#define EMPTY_DELIM '\0'
/* Name this program was run with. */
-char *program_name;
+char const *program_name;
/* If nonzero, we have read standard input at some point. */
static bool have_read_stdin;
diff --git a/src/pathchk.c b/src/pathchk.c
index 21e7acd86..821fe335b 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -72,7 +72,7 @@
static bool validate_file_name (char *, bool, bool);
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
diff --git a/src/pinky.c b/src/pinky.c
index d5413ca95..b8d453b14 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -45,7 +45,7 @@
char *ttyname ();
/* The name this program was run with. */
-const char *program_name;
+char const *program_name;
/* If true, display the hours:minutes since each user has touched
the keyboard, or blank if within the last minute, or days followed
diff --git a/src/pr.c b/src/pr.c
index ed2876a76..28ce71370 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -446,7 +446,7 @@ static void print_sep_string (void);
static void separator_string (const char *optarg_S);
/* The name under which this program was invoked. */
-char *program_name;
+char const *program_name;
/* All of the columns to print. */
static COLUMN *column_vector;
diff --git a/src/printenv.c b/src/printenv.c
index 24b4d979b..b90551cf9 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -46,7 +46,7 @@ enum { PRINTENV_FAILURE = 2 };
proper_name ("Richard Mlynarik")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
extern char **environ;
diff --git a/src/printf.c b/src/printf.c
index cd3e94a8a..7081dccd9 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -79,7 +79,7 @@ static char const *const cfcc_msg =
N_("warning: %s: character(s) following character constant have been ignored");
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/ptx.c b/src/ptx.c
index 174b3478b..cdc65137e 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -69,7 +69,7 @@
#define Sword 1
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Program options. */
diff --git a/src/pwd.c b/src/pwd.c
index bf20f3f50..adbc5b33d 100644
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -40,7 +40,7 @@ struct file_name
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/readlink.c b/src/readlink.c
index 6f29fec0e..455b56e85 100644
--- a/src/readlink.c
+++ b/src/readlink.c
@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("Dmitry V. Levin")
/* Name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, do not output the trailing newline. */
static bool no_newline;
diff --git a/src/rm.c b/src/rm.c
index 0bcd3c6e7..eb90bf2cd 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -67,7 +67,7 @@
proper_name ("Jim Meyering")
/* Name this program was run with. */
-char *program_name;
+char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
diff --git a/src/rmdir.c b/src/rmdir.c
index b090d7a85..4ed2f7742 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -39,7 +39,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, remove empty parent directories. */
static bool remove_empty_parents;
diff --git a/src/runcon.c b/src/runcon.c
index ca81b412e..5f9746cf0 100644
--- a/src/runcon.c
+++ b/src/runcon.c
@@ -73,7 +73,7 @@ static struct option long_options[] = {
};
/* The name the program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/seq.c b/src/seq.c
index 2277e7eae..2fe6ec267 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -44,7 +44,7 @@
static bool equal_width;
/* The name that this program was run with. */
-char *program_name;
+char const *program_name;
/* The string used to separate two numbers. */
static char const *separator;
diff --git a/src/setuidgid.c b/src/setuidgid.c
index dde5e04fd..a6262fe4e 100644
--- a/src/setuidgid.c
+++ b/src/setuidgid.c
@@ -39,7 +39,7 @@
#define SETUIDGID_FAILURE 111
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/shuf.c b/src/shuf.c
index cdba97bc8..359aeb0c8 100644
--- a/src/shuf.c
+++ b/src/shuf.c
@@ -37,7 +37,7 @@
#define AUTHORS proper_name ("Paul Eggert")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/sleep.c b/src/sleep.c
index 5ecdb4fd3..5ae704517 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -36,7 +36,7 @@
proper_name ("Paul Eggert")
/* The name by which this program was run. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/sort.c b/src/sort.c
index e0480eeb9..5b272e7b7 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -184,7 +184,7 @@ struct month
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* FIXME: None of these tables work with multibyte character sets.
Also, there are many other bugs when handling multibyte characters.
diff --git a/src/split.c b/src/split.c
index a490c87bc..4937e55a8 100644
--- a/src/split.c
+++ b/src/split.c
@@ -47,7 +47,7 @@
#define DEFAULT_SUFFIX_LENGTH 2
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Base name of output files. */
static char const *outbase;
diff --git a/src/stat.c b/src/stat.c
index 2129dce12..7b750a085 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -173,7 +173,7 @@ static struct option const long_options[] = {
{NULL, 0, NULL, 0}
};
-char *program_name;
+char const *program_name;
/* Whether to follow symbolic links; True for --dereference (-L). */
static bool follow_links;
diff --git a/src/stty.c b/src/stty.c
index 5a6609828..344136574 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -456,7 +456,7 @@ static struct option longopts[] =
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static void wrapf (const char *message, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
diff --git a/src/su.c b/src/su.c
index 746eedc84..d6aaaaa88 100644
--- a/src/su.c
+++ b/src/su.c
@@ -129,7 +129,7 @@ static void run_shell (char const *, char const *, char **, size_t)
ATTRIBUTE_NORETURN;
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, pass the `-f' option to the subshell. */
static bool fast_startup;
diff --git a/src/sum.c b/src/sum.c
index 28bd05235..a2aa94570 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -37,7 +37,7 @@
proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* True if any of the files read were the standard input. */
static bool have_read_stdin;
diff --git a/src/sync.c b/src/sync.c
index de41e0cd2..fe09c01ce 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -31,7 +31,7 @@
#define AUTHORS proper_name ("Jim Meyering")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/tac.c b/src/tac.c
index ec4064162..baaf5ed16 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -76,7 +76,7 @@ tac -r -s '.\|
#define WRITESIZE 8192
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* The string that separates the records of the file. */
static char const *separator;
diff --git a/src/tail.c b/src/tail.c
index a2ea79aea..f6ade24b2 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -163,7 +163,7 @@ static uintmax_t max_n_unchanged_stats_between_opens =
DEFAULT_MAX_N_UNCHANGED_STATS_BETWEEN_OPENS;
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* The process ID of the process (presumably on the current host)
that is writing to all followed files. */
diff --git a/src/tee.c b/src/tee.c
index 5a5ea08e0..2f1c7bb55 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -42,7 +42,7 @@ static bool append;
static bool ignore_interrupts;
/* The name that this program was run with. */
-char *program_name;
+char const *program_name;
static struct option const long_options[] =
{
diff --git a/src/test.c b/src/test.c
index b546efdb8..88579d2ca 100644
--- a/src/test.c
+++ b/src/test.c
@@ -48,7 +48,7 @@
# include <sys/param.h>
#endif
-char *program_name;
+char const *program_name;
/* Exit status for syntax errors, etc. */
enum { TEST_TRUE, TEST_FALSE, TEST_FAILURE };
diff --git a/src/timeout.c b/src/timeout.c
index d7e344198..b393a636a 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -83,7 +83,7 @@ static int term_signal = SIGTERM; /* same default as kill command. */
static int monitored_pid;
static int sigs_to_ignore[NSIG]; /* so monitor can ignore sigs it resends. */
-char *program_name;
+char const *program_name;
static struct option const long_options[] = {
{"signal", required_argument, NULL, 's'},
diff --git a/src/touch.c b/src/touch.c
index 37b598717..b8e4f2e1c 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -49,7 +49,7 @@
#define CH_MTIME 2
/* The name by which this program was run. */
-char *program_name;
+char const *program_name;
/* Which timestamps to change. */
static int change_times;
diff --git a/src/tr.c b/src/tr.c
index d75dee352..532e4f01a 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -194,7 +194,7 @@ es_match (struct E_string const *es, size_t i, char c)
}
/* The name by which this program was run. */
-char *program_name;
+char const *program_name;
/* When true, each sequence in the input of a repeated character
(call it c) is replaced (in the output) by a single occurrence of c
diff --git a/src/true.c b/src/true.c
index 54a3c5aec..ae6990a3f 100644
--- a/src/true.c
+++ b/src/true.c
@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("Jim Meyering")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/tsort.c b/src/tsort.c
index 468c00c73..a68ba04dc 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -60,7 +60,7 @@ struct item
};
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* The head of the sorted list. */
static struct item *head = NULL;
diff --git a/src/tty.c b/src/tty.c
index e5cfcb4fd..fe19b0110 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -43,7 +43,7 @@ enum
#define AUTHORS proper_name ("David MacKenzie")
/* The name under which this program was run. */
-char *program_name;
+char const *program_name;
/* If true, return an exit status but produce no output. */
static bool silent;
diff --git a/src/uname.c b/src/uname.c
index 82261e66c..4691afc5c 100644
--- a/src/uname.c
+++ b/src/uname.c
@@ -87,7 +87,7 @@
#define PRINT_OPERATING_SYSTEM 128
/* The name this program was run with, for error messages. */
-char *program_name;
+char const *program_name;
static struct option const uname_long_options[] =
{
diff --git a/src/unexpand.c b/src/unexpand.c
index 6a60b20b2..1fc65d39e 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -53,7 +53,7 @@
#define OUTPUT_BLOCK 256
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, convert blanks even after nonblank characters have been
read on the line. */
diff --git a/src/uniq.c b/src/uniq.c
index e375ab44b..f8948e26a 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -51,7 +51,7 @@
while (0)
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* True if the LC_COLLATE locale is hard. */
static bool hard_LC_COLLATE;
diff --git a/src/unlink.c b/src/unlink.c
index 26efb6682..0ef24480e 100644
--- a/src/unlink.c
+++ b/src/unlink.c
@@ -36,7 +36,7 @@
#define AUTHORS proper_name ("Michael Stone")
/* Name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/uptime.c b/src/uptime.c
index 1165f947a..1179ce568 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -48,7 +48,7 @@
int getloadavg ();
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static void
print_uptime (size_t n, const STRUCT_UTMP *this)
diff --git a/src/users.c b/src/users.c
index 745b2bca1..b1e8b3d8b 100644
--- a/src/users.c
+++ b/src/users.c
@@ -36,7 +36,7 @@
proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
static int
userid_compare (const void *v_a, const void *v_b)
diff --git a/src/wc.c b/src/wc.c
index 0fd138d07..731eb4a47 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -50,7 +50,7 @@
#define BUFFER_SIZE (16 * 1024)
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* Cumulative number of lines, words, chars and bytes in all files so far.
max_line_length is the maximum over all files processed so far. */
diff --git a/src/who.c b/src/who.c
index 73c7feab7..bec924fb2 100644
--- a/src/who.c
+++ b/src/who.c
@@ -99,7 +99,7 @@
char *ttyname ();
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
/* If true, attempt to canonicalize hostnames via a DNS lookup. */
static bool do_lookup;
diff --git a/src/whoami.c b/src/whoami.c
index eca03f30e..7686fd083 100644
--- a/src/whoami.c
+++ b/src/whoami.c
@@ -36,7 +36,7 @@
#define AUTHORS proper_name ("Richard Mlynarik")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)
diff --git a/src/yes.c b/src/yes.c
index 6cb62f982..7dec1ecdd 100644
--- a/src/yes.c
+++ b/src/yes.c
@@ -32,7 +32,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
-char *program_name;
+char const *program_name;
void
usage (int status)