diff options
author | Eric Blake <eblake@redhat.com> | 2010-10-05 11:47:21 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-10-05 12:12:30 -0600 |
commit | 2f41f563d1b827bdc0ab87b6f2ef1cbd4e2decef (patch) | |
tree | 396a6d6b4267c707e90373bdefae7d68263b3f07 /src | |
parent | b7459696dca96015688e82c81eaefad756b63ddc (diff) | |
download | coreutils-2f41f563d1b827bdc0ab87b6f2ef1cbd4e2decef.tar.xz |
build: complete the rename of get_date
* gnulib: Update to latest.
* src/date.c (includes, batch_convert, main): Track rename.
* src/touch.c (includes, get_reldate): Likewise.
* doc/coreutils.texi (Top, Date input formats): Likewise.
* bootstrap.conf (gnulib_modules): Likewise.
* doc/Makefile.am (EXTRA_DIST): Likewise.
* doc/.gitignore: Likewise.
* bootstrap: Synchronize from upstream.
Diffstat (limited to 'src')
-rw-r--r-- | src/date.c | 6 | ||||
-rw-r--r-- | src/touch.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/date.c b/src/date.c index 42f334828..ad9b4901b 100644 --- a/src/date.c +++ b/src/date.c @@ -27,7 +27,7 @@ #include "system.h" #include "argmatch.h" #include "error.h" -#include "getdate.h" +#include "parse-datetime.h" #include "posixtm.h" #include "quote.h" #include "stat-time.h" @@ -281,7 +281,7 @@ batch_convert (const char *input_filename, const char *format) break; } - if (! get_date (&when, line, NULL)) + if (! parse_datetime (&when, line, NULL)) { if (line[line_length - 1] == '\n') line[line_length - 1] = '\0'; @@ -500,7 +500,7 @@ main (int argc, char **argv) { if (set_datestr) datestr = set_datestr; - valid_date = get_date (&when, datestr, NULL); + valid_date = parse_datetime (&when, datestr, NULL); } } diff --git a/src/touch.c b/src/touch.c index 6358b893c..f9374c07a 100644 --- a/src/touch.c +++ b/src/touch.c @@ -28,7 +28,7 @@ #include "argmatch.h" #include "error.h" #include "fd-reopen.h" -#include "getdate.h" +#include "parse-datetime.h" #include "posixtm.h" #include "posixver.h" #include "quote.h" @@ -112,7 +112,7 @@ static void get_reldate (struct timespec *result, char const *flex_date, struct timespec const *now) { - if (! get_date (result, flex_date, now)) + if (! parse_datetime (result, flex_date, now)) error (EXIT_FAILURE, 0, _("invalid date format %s"), quote (flex_date)); } |