summaryrefslogtreecommitdiff
path: root/libtbd_create.c
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-10-19 17:30:28 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2011-10-19 17:30:28 +0100
commitc4b2a882a539ef2b33a8d4efcff09d4aad48e196 (patch)
tree7a63543e7acc6f7b96086ec27d2007e4d74afdcd /libtbd_create.c
parent72a80acf9dd2eb8992ae1e045bed4efdc234965e (diff)
downloadtbdiff-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.c4
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;
}