From bdb3420bc937f0ab9187695a56f0e63d7c227f00 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 13 Dec 2018 17:30:08 +0100 Subject: add function to obtain monotonic time --- src/util/disk.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/util/disk.c') diff --git a/src/util/disk.c b/src/util/disk.c index dc38d1137..d723303d8 100644 --- a/src/util/disk.c +++ b/src/util/disk.c @@ -236,7 +236,8 @@ GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh, * @return the new position on success, #GNUNET_SYSERR otherwise */ off_t -GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle * h, off_t offset, +GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, + off_t offset, enum GNUNET_DISK_Seek whence) { if (h == NULL) @@ -1034,7 +1035,8 @@ GNUNET_DISK_fn_read (const char *fn, */ ssize_t GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle * h, - const void *buffer, size_t n) + const void *buffer, + size_t n) { if (NULL == h) { -- cgit v1.2.3