diff options
author | Stefan Siegl <stesie@brokenpipe.de> | 2007-10-15 22:08:56 +0000 |
---|---|---|
committer | Stefan Siegl <stesie@brokenpipe.de> | 2007-10-15 22:08:56 +0000 |
commit | 43df67ad041fda13c795b8b91fc45e8b71c047cf (patch) | |
tree | 8a732ed53991089315c188f907955eb864431e37 /node.c | |
parent | c5f1b57ec0871d6a9edf3fc8d3215b1173c6ed2e (diff) |
Adapt to change of `struct stat' which holds timestamps in
`struct timespec's now.
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,7 +1,7 @@ /********************************************************** * node.c * - * Copyright 2004, Stefan Siegl <stesie@brokenpipe.de>, Germany + * Copyright 2004, 2007, Stefan Siegl <stesie@brokenpipe.de>, Germany * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Publice License, @@ -99,13 +99,13 @@ cvsfs_make_node(struct netnode *nn) node->nn_stat.st_size = nn->revision->length; node->nn_stat.st_blocks = (node->nn_stat.st_size >> 9) + 1; - node->nn_stat.st_atime = - node->nn_stat.st_mtime = - node->nn_stat.st_ctime = nn->revision->time; + node->nn_stat.st_atim.tv_sec = nn->revision->time; + node->nn_stat.st_mtim.tv_sec = nn->revision->time; + node->nn_stat.st_ctim.tv_sec = nn->revision->time; - node->nn_stat.st_atime_usec = - node->nn_stat.st_mtime_usec = - node->nn_stat.st_ctime_usec = 0; + node->nn_stat.st_atim.tv_nsec = 0; + node->nn_stat.st_mtim.tv_nsec = 0; + node->nn_stat.st_ctim.tv_nsec = 0; } /* well, we're creating a new node for a file ... */ |