* find/find.c (dirchange_is_fatal): Change "Warning" to "WARNING". * find/ftsfind.c (consider_visiting): Likewise. * find/pred.c (pred_newerXY): Likewise. * find/util.c (get_statinfo): Likewise. (hook_fstatat): Likewise. * locate/word_io.c (decode_value): Likewise. * xargs/xargs.c (main): Change "Warning" to "warning". (read_line): Change "Warning" to "WARNING". (wait_for_proc): Likewise.
Signed-off-by: James Youngman <[email protected]> --- ChangeLog | 11 +++++++++++ find/find.c | 4 ++-- find/ftsfind.c | 2 +- find/pred.c | 2 +- find/util.c | 4 ++-- locate/word_io.c | 2 +- xargs/xargs.c | 6 +++--- 7 files changed, 21 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index e673061..069b479 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,17 @@ 2010-04-02 James Youngman <[email protected]> + Coding standard fix: "Warning" should be "WARNING". + * find/find.c (dirchange_is_fatal): Change "Warning" to "WARNING". + * find/ftsfind.c (consider_visiting): Likewise. + * find/pred.c (pred_newerXY): Likewise. + * find/util.c (get_statinfo): Likewise. + (hook_fstatat): Likewise. + * locate/word_io.c (decode_value): Likewise. + * xargs/xargs.c (main): Change "Warning" to "warning". + (read_line): Change "Warning" to "WARNING". + (wait_for_proc): Likewise. + Remove useless if conditionals before calls to 'free'. * lib/nextelem.c (next_element): Remove useless if-before-free. * lib/buildcmd.c (bc_do_exec): Likewise. diff --git a/find/find.c b/find/find.c index 08d58d0..2cacc6f 100644 --- a/find/find.c +++ b/find/find.c @@ -394,7 +394,7 @@ dirchange_is_fatal (const char *specific_what, if (!silent) { error (0, 0, - _("Warning: file system %s has recently been unmounted."), + _("WARNING: file system %s has recently been unmounted."), safely_quote_err_filename (0, specific_what)); } break; @@ -404,7 +404,7 @@ dirchange_is_fatal (const char *specific_what, if (!silent) { error (0, 0, - _("Warning: file system %s has recently been mounted."), + _("WARNING: file system %s has recently been mounted."), safely_quote_err_filename (0, specific_what)); } break; diff --git a/find/ftsfind.c b/find/ftsfind.c index 1fce8e3..71bbee4 100644 --- a/find/ftsfind.c +++ b/find/ftsfind.c @@ -476,7 +476,7 @@ consider_visiting (FTS *p, FTSENT *ent) if (00000 == mode) { /* Savannah bug #16378. */ - error (0, 0, _("Warning: file %s appears to have mode 0000"), + error (0, 0, _("WARNING: file %s appears to have mode 0000"), quotearg_n_style (0, options.err_quoting_style, ent->fts_path)); } } diff --git a/find/pred.c b/find/pred.c index 2f6beef..cb14861 100644 --- a/find/pred.c +++ b/find/pred.c @@ -1401,7 +1401,7 @@ pred_newerXY (const char *pathname, struct stat *stat_buf, struct predicate *pre if (ts.tv_nsec < 0); { /* XXX: Cannot determine birth time. Warn once. */ - error (0, 0, _("Warning: cannot determine birth time of file %s"), + error (0, 0, _("WARNING: cannot determine birth time of file %s"), safely_quote_err_filename (0, pathname)); return false; } diff --git a/find/util.c b/find/util.c index 243b721..d65924e 100644 --- a/find/util.c +++ b/find/util.c @@ -207,7 +207,7 @@ get_statinfo (const char *pathname, const char *name, struct stat *p) if (00000 == p->st_mode) { /* Savannah bug #16378. */ - error (0, 0, _("Warning: file %s appears to have mode 0000"), + error (0, 0, _("WARNING: file %s appears to have mode 0000"), quotearg_n_style (0, options.err_quoting_style, name)); } } @@ -496,7 +496,7 @@ static int hook_fstatat (int fd, const char *name, struct stat *p, int flags) { /* No use of _() here; no point asking translators to translate a debug msg */ error (0, 0, - "Warning: some debug code is enabled for Savannah bug #16378; " + "WARNING: some debug code is enabled for Savannah bug #16378; " "this should not occur in released versions of findutils!"); warned = 1; } diff --git a/locate/word_io.c b/locate/word_io.c index ff17200..41a7221 100644 --- a/locate/word_io.c +++ b/locate/word_io.c @@ -94,7 +94,7 @@ decode_value (const unsigned char data[], { /* Aha, now we know we have to byte-swap. */ error (0, 0, - _("Warning: locate database %s was " + _("WARNING: locate database %s was " "built with a different byte order"), quotearg_n_style (0, locale_quoting_style, filename)); *endian_state_flag = GetwordEndianStateSwab; diff --git a/xargs/xargs.c b/xargs/xargs.c index 61849e1..ccf2ba1 100644 --- a/xargs/xargs.c +++ b/xargs/xargs.c @@ -570,7 +570,7 @@ main (int argc, char **argv) if (arg_size > bc_ctl.posix_arg_size_max) { error (0, 0, - _("Warning: value %ld for -s option is too large, " + _("warning: value %ld for -s option is too large, " "using %ld instead"), arg_size, bc_ctl.posix_arg_size_max); arg_size = bc_ctl.posix_arg_size_max; @@ -925,7 +925,7 @@ read_line (void) { /* This is just a warning message. We only issue it once. */ error (0, 0, - _("Warning: a NUL character occurred in the input. " + _("WARNING: a NUL character occurred in the input. " "It cannot be passed through in the argument list. " "Did you mean to use the --null option?")); nullwarning_given = 1; @@ -1331,7 +1331,7 @@ wait_for_proc (boolean all, unsigned int minreap) * number of child processes still executing, so the * loop should have terminated. */ - error (0, 0, _("Warning: Lost track of %d child processes"), + error (0, 0, _("WARNING: Lost track of %d child processes"), procs_executing); } else -- 1.5.6.5 _______________________________________________ Findutils-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/findutils-patches
