summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-08 21:09:41 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-08 21:09:41 +0000
commit100d586df2b5a5aadfc52cca5bb29682eac1b9b6 (patch)
treef9711c234ddbca091eb65b4a6199e63224a23809 /openbsd-compat/bsd-misc.c
parent5c98db50bfa18767693421aa0beaed8ac733f19f (diff)
- (bal) Correction to utimes() again.
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 60526be9..1c1e43a5 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -24,7 +24,7 @@
#include "includes.h"
-RCSID("$Id: bsd-misc.c,v 1.9 2002/07/03 23:50:00 mouring Exp $");
+RCSID("$Id: bsd-misc.c,v 1.10 2002/07/08 21:09:41 mouring Exp $");
char *get_progname(char *argv0)
{
@@ -93,8 +93,8 @@ int utimes(char *filename, struct timeval *tvp)
{
struct utimbuf ub;
- ub.actime = tvp[0]->tv_sec;
- ub.modtime = tvp[1]->tv_usec;
+ ub.actime = tvp[0].tv_sec;
+ ub.modtime = tvp[1].tv_sec;
return(utime(filename, &ub));
}