diff options
-rw-r--r-- | usr.sbin/yppoll/yppoll.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/yppoll/yppoll.c b/usr.sbin/yppoll/yppoll.c index 048fdeb..b473c71 100644 --- a/usr.sbin/yppoll/yppoll.c +++ b/usr.sbin/yppoll/yppoll.c @@ -63,6 +63,7 @@ char **argv; char *inmap, *master; int order; int c, r; + time_t t; yp_get_default_domain(&domainname); @@ -87,8 +88,8 @@ char **argv; r = yp_order(domainname, inmap, &order); if (r != 0) errx(1, "no such map %s. Reason: %s", inmap, yperr_string(r)); - printf("Map %s has order number %d. %s", inmap, order, - ctime((time_t *)&order)); + t = int_to_time(order); + printf("Map %s has order number %d. %s", inmap, order, ctime(&t)); r = yp_master(domainname, inmap, &master); if (r != 0) errx(1, "no such map %s. Reason: %s", inmap, yperr_string(r)); |