summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-03 23:50:00 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-03 23:50:00 +0000
commit723e29aa20cdd59c12ff02c4a7d7d7f45bc07a08 (patch)
tree9a057a48c248dd93b99b12ecc952c1e5d97d7096 /openbsd-compat/bsd-misc.c
parent6dbf3001ece375d603b50d7e4b49c72ba80f5930 (diff)
- (bal) minor correction to utimes() replacement. Patch by
onoe@sm.sony.co.jp
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 fa48afea..60526be9 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.8 2002/06/13 21:34:58 mouring Exp $");
+RCSID("$Id: bsd-misc.c,v 1.9 2002/07/03 23:50:00 mouring Exp $");
char *get_progname(char *argv0)
{
@@ -93,8 +93,8 @@ int utimes(char *filename, struct timeval *tvp)
{
struct utimbuf ub;
- ub.actime = tvp->tv_sec;
- ub.modtime = tvp->tv_usec;
+ ub.actime = tvp[0]->tv_sec;
+ ub.modtime = tvp[1]->tv_usec;
return(utime(filename, &ub));
}