diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-16 20:14:22 +0200 |
| commit | 0f03cc378e6ce48f17a20e409f93bfc11345a6ed (patch) | |
| tree | f4768c6fe96e1ac2a9c5833dee897924300d4a45 /src/util/io.h | |
| parent | Add blind-tempral-mean (diff) | |
| download | blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.gz blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.bz2 blind-0f03cc378e6ce48f17a20e409f93bfc11345a6ed.tar.xz | |
Fix errors and warnings and make the code cleaner
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/util/io.h')
| -rw-r--r-- | src/util/io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/io.h b/src/util/io.h index 44c0a92..2548a3c 100644 --- a/src/util/io.h +++ b/src/util/io.h @@ -40,10 +40,10 @@ enreadall(int status, int fd, void *buf, size_t n, const char *fname) return (size_t)r; } -int pwriteall(int fd, void *buf, size_t n, size_t ptr); +int pwriteall(int fd, void *buf, size_t n, off_t ptr); static inline void -enpwriteall(int status, int fd, void *buf, size_t n, size_t ptr, const char *fname) +enpwriteall(int status, int fd, void *buf, size_t n, off_t ptr, const char *fname) { if (pwriteall(fd, buf, n, ptr)) enprintf(status, "pwrite %s:", fname); |
