* directory or online at http://www.openafs.org/dl/license10.html
*/
-#include <afs/param.h>
#include <afsconfig.h>
+#include <afs/param.h>
-RCSID("$Header$");
#include "ktime.h"
main(argc, argv)
-int argc;
-char **argv; {
+ int argc;
+ char **argv;
+{
long code, temp;
+ time_t t;
if (argc <= 1) {
printf("dtest: usage is 'dtest <time to interpret>'\n");
}
code = ktime_DateToLong(argv[1], &temp);
+ t = temp;
if (code) {
printf("date parse failed with code %d.\n", code);
- }
- else {
- printf("returned %d, which, run through ctime, yields %s", temp, ctime(&temp));
+ } else {
+ printf("returned %d, which, run through ctime, yields %s", temp,
+ ctime(&t));
}
exit(0);
}