mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-10-28 15:15:08 +03:00
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.
This commit is contained in:
@@ -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'},
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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] =
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
2
src/cp.c
2
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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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. */
|
||||
|
||||
2
src/dd.c
2
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;
|
||||
|
||||
2
src/df.c
2
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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
2
src/du.c
2
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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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. */
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
2
src/id.c
2
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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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::"
|
||||
|
||||
@@ -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)
|
||||
|
||||
2
src/ln.c
2
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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
2
src/ls.c
2
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. */
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
@@ -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. */
|
||||
|
||||
2
src/mv.c
2
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;
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
#endif
|
||||
|
||||
/* The name this program was run with. */
|
||||
char *program_name;
|
||||
char const *program_name;
|
||||
|
||||
static struct option const longopts[] =
|
||||
{
|
||||
|
||||
2
src/nl.c
2
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";
|
||||
|
||||
@@ -43,7 +43,7 @@ enum
|
||||
NOHUP_FAILURE = 127
|
||||
};
|
||||
|
||||
char *program_name;
|
||||
char const *program_name;
|
||||
|
||||
void
|
||||
usage (int status)
|
||||
|
||||
2
src/od.c
2
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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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
|
||||
|
||||
2
src/pr.c
2
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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
#define Sword 1
|
||||
|
||||
/* The name this program was run with. */
|
||||
char *program_name;
|
||||
char const *program_name;
|
||||
|
||||
/* Program options. */
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
2
src/rm.c
2
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. */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
#define SETUIDGID_FAILURE 111
|
||||
|
||||
char *program_name;
|
||||
char const *program_name;
|
||||
|
||||
void
|
||||
usage (int status)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)));
|
||||
|
||||
2
src/su.c
2
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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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'},
|
||||
|
||||
@@ -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;
|
||||
|
||||
2
src/tr.c
2
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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
2
src/wc.c
2
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. */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user