summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-10-11 14:44:13 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-10-11 14:44:38 -0700
commiteb7d81eb2a84f222795603097257a4d76732d504 (patch)
tree168a930a57027e3327ca04be24ccd7532a1b5bc8 /tests
parent60cc7709da5317fca021d9fe4e46a943e528acc8 (diff)
downloadpaxutils-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.c6
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. */