From a1eb100d51e6a610e017811e73910919d61d4c50 Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <tschwinge@gnu.org>
Date: Tue, 13 Nov 2007 22:58:10 +0000
Subject: 2007-11-13  Thomas Schwinge  <tschwinge@gnu.org>

	* trans.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
---
 console-client/trans.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

(limited to 'console-client/trans.c')

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