diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 22:58:10 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 22:58:10 +0000 |
commit | a1eb100d51e6a610e017811e73910919d61d4c50 (patch) | |
tree | d19515cb08813e0b75fb955aff67cd9090e4aa27 /console-client/trans.c | |
parent | 80e9c5d32e3cc0627754c0ff9d2b73fc1860f248 (diff) | |
download | hurd-a1eb100d51e6a610e017811e73910919d61d4c50.tar.gz hurd-a1eb100d51e6a610e017811e73910919d61d4c50.tar.bz2 hurd-a1eb100d51e6a610e017811e73910919d61d4c50.zip |
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* trans.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
Diffstat (limited to 'console-client/trans.c')
-rw-r--r-- | console-client/trans.c | 14 |
1 files changed, 5 insertions, 9 deletions
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; |