diff options
author | 2013-04-23 07:11:27 +0000 | |
---|---|---|
committer | 2013-04-23 07:11:27 +0000 | |
commit | 904f6f582e69071680c4348d72e19dc6c4de8e66 (patch) | |
tree | 19610ab245626ff3362da70515fc596334aad8a8 /sbin/fsdb | |
parent | add EXIT STATUS; original diff from Ryan Kavanagh, but i've used the (diff) | |
download | wireguard-openbsd-904f6f582e69071680c4348d72e19dc6c4de8e66.tar.xz wireguard-openbsd-904f6f582e69071680c4348d72e19dc6c4de8e66.zip |
prepare for more time (bits); ok deraadt@ millert@
Diffstat (limited to 'sbin/fsdb')
-rw-r--r-- | sbin/fsdb/fsdb.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c index 966d013c2d1..c50f9c3d12d 100644 --- a/sbin/fsdb/fsdb.c +++ b/sbin/fsdb/fsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsdb.c,v 1.24 2013/04/16 19:25:49 deraadt Exp $ */ +/* $OpenBSD: fsdb.c,v 1.25 2013/04/23 07:11:27 otto Exp $ */ /* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */ /*- @@ -66,7 +66,7 @@ static int scannames(struct inodesc *); static int dolookup(char *); static int chinumfunc(struct inodesc *); static int chnamefunc(struct inodesc *); -static int dotime(char *, int32_t *, int32_t *); +static int dotime(char *, time_t *, int32_t *); int returntosingle = 0; union dinode *curinode; @@ -806,11 +806,11 @@ CMDFUNCSTART(chgroup) } static int -dotime(char *name, int32_t *rsec, int32_t *rnsec) +dotime(char *name, time_t *rsec, int32_t *rnsec) { char *p, *val; struct tm t; - int32_t sec; + time_t sec; int32_t nsec; p = strchr(name, '.'); @@ -865,7 +865,8 @@ badformat: CMDFUNCSTART(chmtime) { - int32_t rsec, nsec; + time_t rsec; + int32_t nsec; if (dotime(argv[1], &rsec, &nsec)) return 1; @@ -878,7 +879,8 @@ CMDFUNCSTART(chmtime) CMDFUNCSTART(chatime) { - int32_t rsec, nsec; + time_t rsec; + int32_t nsec; if (dotime(argv[1], &rsec, &nsec)) return 1; @@ -891,7 +893,8 @@ CMDFUNCSTART(chatime) CMDFUNCSTART(chctime) { - int32_t rsec, nsec; + time_t rsec; + int32_t nsec; if (dotime(argv[1], &rsec, &nsec)) return 1; |