summaryrefslogtreecommitdiff
path: root/sbin/fsdb/fsdb.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2013-04-23 07:11:28 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2013-04-23 07:11:28 +0000
commitd6ec1e7d722bbaef7d9d8c473505a9a07412a761 (patch)
tree1e44262169013460a43bca807b507e775794543d /sbin/fsdb/fsdb.c
parente441eef2d52faf6d926bab0bf43c8326852e0f35 (diff)
prepare for more time (bits); ok deraadt@ millert@
Diffstat (limited to 'sbin/fsdb/fsdb.c')
-rw-r--r--sbin/fsdb/fsdb.c17
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;