From a1eb100d51e6a610e017811e73910919d61d4c50 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 13 Nov 2007 22:58:10 +0000 Subject: 2007-11-13 Thomas Schwinge * trans.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. --- console-client/ChangeLog | 4 ++++ console-client/trans.c | 14 +++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'console-client') diff --git a/console-client/ChangeLog b/console-client/ChangeLog index b69ffe4f..cf2d16c9 100644 --- a/console-client/ChangeLog +++ b/console-client/ChangeLog @@ -1,3 +1,7 @@ +2007-11-13 Thomas Schwinge + + * trans.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. + 2007-05-08 Samuel Thibault * vga-support.c (vga_fini): Fix call to ioperm(). diff --git a/console-client/trans.c b/console-client/trans.c index ee7581b4..a90b5c5d 100644 --- a/console-client/trans.c +++ b/console-client/trans.c @@ -1,5 +1,7 @@ /* trans.c -- Control a translator node for the repeaters. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. + Written by Marco Gerards. This program is free software; you can redistribute it and/or @@ -173,18 +175,12 @@ netfs_attempt_utimes (struct iouser *cred, struct node *np, if (! err) { if (mtime) - { - np->nn_stat.st_mtime = mtime->tv_sec; - np->nn_stat.st_mtime_usec = mtime->tv_nsec / 1000; - } + np->nn_stat.st_mtim = *mtime; else flags |= TOUCH_MTIME; if (atime) - { - np->nn_stat.st_atime = atime->tv_sec; - np->nn_stat.st_atime_usec = atime->tv_nsec / 1000; - } + np->nn_stat.st_atim = *atime; else flags |= TOUCH_ATIME; -- cgit v1.2.3