diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-19 17:30:28 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-19 17:30:28 +0100 |
commit | c4b2a882a539ef2b33a8d4efcff09d4aad48e196 (patch) | |
tree | 7a63543e7acc6f7b96086ec27d2007e4d74afdcd /libtbd_create.c | |
parent | 72a80acf9dd2eb8992ae1e045bed4efdc234965e (diff) | |
download | tbdiff-c4b2a882a539ef2b33a8d4efcff09d4aad48e196.tar.gz |
mtime is now a time_t rather than a uint32_t
In future it should be standardised so that diffs can be made on a different
architecture to the one they are deployed on, but currently it doesn't
work on the same architecture if that architecture is 64-bit
Diffstat (limited to 'libtbd_create.c')
-rw-r--r-- | libtbd_create.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtbd_create.c b/libtbd_create.c index f1d886d..5f0bef0 100644 --- a/libtbd_create.c +++ b/libtbd_create.c @@ -76,9 +76,9 @@ tbd_create_fwrite_mdata_mask(FILE *stream, static int tbd_create_fwrite_mtime(FILE *stream, - uint32_t mtime) + time_t mtime) { - if(fwrite(&mtime, sizeof(uint32_t), 1, stream) != 1) + if(fwrite(&mtime, sizeof(mtime), 1, stream) != 1) return TBD_ERROR(TBD_ERROR_UNABLE_TO_WRITE_STREAM); return 0; } |