diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-28 20:40:58 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-28 20:40:58 +0000 |
commit | 18ba58febf38930f93246a3550f9a017cd68002f (patch) | |
tree | 20e2e9cb5984c93a2e568f05f420c2b32d8c844a /usr.sbin | |
parent | 044c1da2a5568a722526096826be7c6275ec7dec (diff) | |
download | FreeBSD-src-18ba58febf38930f93246a3550f9a017cd68002f.zip FreeBSD-src-18ba58febf38930f93246a3550f9a017cd68002f.tar.gz |
Fix int vs time_t, convert int to time_t
Diffstat (limited to 'usr.sbin')
-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)); |