diff options
author | Jim Meyering <jim@meyering.net> | 1997-06-15 11:40:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-06-15 11:40:47 +0000 |
commit | 50e65a424c0a1ffbd75936ac30aecc33c693a24a (patch) | |
tree | 4199668e86c4d3887bb54157ff561f0e29376378 /src | |
parent | aca4091fae87c15b0b35588197b7fd971b1ecacb (diff) | |
download | coreutils-50e65a424c0a1ffbd75936ac30aecc33c693a24a.tar.xz |
(init_header) [T_BUF_FMT]: Output the 4-digit year (not the
2-digit abbreviation) in each page header. Reported by Noah Friedman.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -179,23 +179,23 @@ #include "xstrtol.h" #if HAVE_LIMITS_H -#include <limits.h> +# include <limits.h> #endif char *xmalloc (); char *xrealloc (); #ifndef UINT_MAX -#define UINT_MAX ((unsigned int) ~(unsigned int) 0) +# define UINT_MAX ((unsigned int) ~(unsigned int) 0) #endif #ifndef INT_MAX -#define INT_MAX ((int) (UINT_MAX >> 1)) +# define INT_MAX ((int) (UINT_MAX >> 1)) #endif #ifndef TRUE -#define TRUE 1 -#define FALSE 0 +# define TRUE 1 +# define FALSE 0 #endif /* Used with start_position in the struct COLUMN described below. @@ -1386,8 +1386,8 @@ init_header (char *filename, int desc) sprintf (header, "%s", " "); /* blank line header */ else { -#define T_BUF_FMT "%y-%m-%d %H:%M" /* date/time short format */ -#define T_BUF_SIZE 15 +#define T_BUF_FMT "%Y-%m-%d %H:%M" /* date/time short format */ +#define T_BUF_SIZE 17 /* FIXME: using a literal here is fragile. */ char t_buf[T_BUF_SIZE]; /* If parallel files or standard input, use current time. */ |