diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-28 20:40:58 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-28 20:40:58 +0000 |
commit | aa3e4732e7044949fad7e2c12eb2a4edb6f59888 (patch) | |
tree | 20e2e9cb5984c93a2e568f05f420c2b32d8c844a /usr.sbin/yppoll | |
parent | d4474241c65f462aa032dc4275d8433c0d1ae15c (diff) | |
download | src-test2-aa3e4732e7044949fad7e2c12eb2a4edb6f59888.tar.gz src-test2-aa3e4732e7044949fad7e2c12eb2a4edb6f59888.zip |
Fix int vs time_t, convert int to time_t
Notes
Notes:
svn path=/head/; revision=85641
Diffstat (limited to 'usr.sbin/yppoll')
-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 048fdeb58f45..b473c711af58 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)); |