diff options
Diffstat (limited to 'lib/libc/db')
-rw-r--r-- | lib/libc/db/hash/hash.c | 4 | ||||
-rw-r--r-- | lib/libc/db/recno/rec_close.c | 6 | ||||
-rw-r--r-- | lib/libc/db/recno/rec_open.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/db/hash/hash.c b/lib/libc/db/hash/hash.c index 5b1c2980362..2b1c2232f4e 100644 --- a/lib/libc/db/hash/hash.c +++ b/lib/libc/db/hash/hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.c,v 1.28 2015/12/28 22:08:18 mmcc Exp $ */ +/* $OpenBSD: hash.c,v 1.29 2016/09/21 04:38:56 guenther Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -477,7 +477,7 @@ flush_meta(HTAB *hashp) whdrp = &whdr; swap_header_copy(&hashp->hdr, whdrp); #endif - if ((wsize = pwrite(fp, whdrp, sizeof(HASHHDR), (off_t)0)) == -1) + if ((wsize = pwrite(fp, whdrp, sizeof(HASHHDR), 0)) == -1) return (-1); else if (wsize != sizeof(HASHHDR)) { diff --git a/lib/libc/db/recno/rec_close.c b/lib/libc/db/recno/rec_close.c index 4afc2b153eb..567c34c96db 100644 --- a/lib/libc/db/recno/rec_close.c +++ b/lib/libc/db/recno/rec_close.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rec_close.c,v 1.12 2015/07/16 04:27:33 tedu Exp $ */ +/* $OpenBSD: rec_close.c,v 1.13 2016/09/21 04:38:56 guenther Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -124,7 +124,7 @@ __rec_sync(const DB *dbp, u_int flags) return (RET_ERROR); /* Rewind the file descriptor. */ - if (lseek(t->bt_rfd, (off_t)0, SEEK_SET) != 0) + if (lseek(t->bt_rfd, 0, SEEK_SET) != 0) return (RET_ERROR); /* Save the cursor. */ @@ -164,7 +164,7 @@ __rec_sync(const DB *dbp, u_int flags) if (status == RET_ERROR) return (RET_ERROR); - if ((off = lseek(t->bt_rfd, (off_t)0, SEEK_CUR)) == -1) + if ((off = lseek(t->bt_rfd, 0, SEEK_CUR)) == -1) return (RET_ERROR); if (ftruncate(t->bt_rfd, off)) return (RET_ERROR); diff --git a/lib/libc/db/recno/rec_open.c b/lib/libc/db/recno/rec_open.c index b8e688f9cef..6683c9fd03e 100644 --- a/lib/libc/db/recno/rec_open.c +++ b/lib/libc/db/recno/rec_open.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rec_open.c,v 1.12 2015/07/16 04:27:33 tedu Exp $ */ +/* $OpenBSD: rec_open.c,v 1.13 2016/09/21 04:38:56 guenther Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -112,7 +112,7 @@ __rec_open(const char *fname, int flags, int mode, const RECNOINFO *openinfo, * and check the errno values. */ errno = 0; - if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) { + if (lseek(rfd, 0, SEEK_CUR) == -1 && errno == ESPIPE) { switch (flags & O_ACCMODE) { case O_RDONLY: F_SET(t, R_RDONLY); |