diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-10-11 14:44:13 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-10-11 14:44:38 -0700 |
commit | eb7d81eb2a84f222795603097257a4d76732d504 (patch) | |
tree | 168a930a57027e3327ca04be24ccd7532a1b5bc8 /tests | |
parent | 60cc7709da5317fca021d9fe4e46a943e528acc8 (diff) | |
download | paxutils-eb7d81eb2a84f222795603097257a4d76732d504.tar.gz |
Adjust to recent gnulib changes with parse-datetime and getopt-gnu.
* doc/.gitignore: Replace getdate.texi with parse-datetime.texi.
* gnulib.modules: Replace getdate with parse-datetime, and
getopt with getopt-gnu.
* paxlib.modules: Replace getopt with getopt-gnu.
* tests/genfile.c: Include parse-datetime.h, not getdate.h.
All instances of get_date replaced with parse_datetime.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/genfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/genfile.c b/tests/genfile.c index 998e6a6..8541be6 100644 --- a/tests/genfile.c +++ b/tests/genfile.c @@ -28,7 +28,7 @@ #include <argmatch.h> #include <argp.h> #include <argcv.h> -#include <getdate.h> +#include <parse-datetime.h> #include <inttostr.h> #include <fcntl.h> #include <sys/stat.h> @@ -363,7 +363,7 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case OPT_DATE: - if (!get_date (&touch_time, arg, NULL)) + if (! parse_datetime (&touch_time, arg, NULL)) argp_error (state, _("Unknown date format")); break; @@ -854,7 +854,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - get_date (&touch_time, "now", NULL); + parse_datetime (&touch_time, "now", NULL); /* Decode command options. */ |