diff options
Diffstat (limited to 'src/libbio')
-rw-r--r-- | src/libbio/bgetc.c | 2 | ||||
-rw-r--r-- | src/libbio/bgetrune.c | 1 | ||||
-rw-r--r-- | src/libbio/bputrune.c | 4 | ||||
-rw-r--r-- | src/libbio/bseek.c | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/src/libbio/bgetc.c b/src/libbio/bgetc.c index 3399fb16b..ceb5cb13f 100644 --- a/src/libbio/bgetc.c +++ b/src/libbio/bgetc.c @@ -83,7 +83,7 @@ Bgetle4(Biobuf *bp) l = Bgetle2(bp); h = Bgetle2(bp); - return l|((uint32)h<<16); + return (int)((uint32)l|((uint32)h<<16)); } int diff --git a/src/libbio/bgetrune.c b/src/libbio/bgetrune.c index 441c07991..b5db39106 100644 --- a/src/libbio/bgetrune.c +++ b/src/libbio/bgetrune.c @@ -26,7 +26,6 @@ THE SOFTWARE. #include <u.h> #include <libc.h> #include <bio.h> -#include <utf.h> long Bgetrune(Biobuf *bp) diff --git a/src/libbio/bputrune.c b/src/libbio/bputrune.c index 7fe0e6569..f2077958b 100644 --- a/src/libbio/bputrune.c +++ b/src/libbio/bputrune.c @@ -26,7 +26,6 @@ THE SOFTWARE. #include <u.h> #include <libc.h> #include <bio.h> -#include <utf.h> int Bputrune(Biobuf *bp, long c) @@ -37,7 +36,8 @@ Bputrune(Biobuf *bp, long c) rune = (Rune)c; if(rune < Runeself) { - BPUTC(bp, (int)rune); + n = BPUTC(bp, (int)rune); + USED(n); return 1; } n = runetochar(str, &rune); diff --git a/src/libbio/bseek.c b/src/libbio/bseek.c index eb426ccfc..528958510 100644 --- a/src/libbio/bseek.c +++ b/src/libbio/bseek.c @@ -33,7 +33,7 @@ Bseek(Biobuf *bp, vlong offset, int base) vlong n, d; int bufsz; -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(PLAN9) if(sizeof(offset) != sizeof(off_t)) { fprint(2, "Bseek: libbio compiled with %d-byte offset\n", sizeof(off_t)); abort(); |