diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/notify.c | 2 | ||||
-rw-r--r-- | src/libbio/bfmt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/notify.c b/src/lib9/notify.c index 4d2a79ef..12edb0e4 100644 --- a/src/lib9/notify.c +++ b/src/lib9/notify.c @@ -69,7 +69,7 @@ notify(void (*f)(void*, char*)) struct sigaction sa; memset(&sa, 0, sizeof sa); - if(f == nil) + if(f == 0) sa.sa_handler = SIG_DFL; else{ notifyf = f; diff --git a/src/libbio/bfmt.c b/src/libbio/bfmt.c index f1b6f5ab..4e0b6206 100644 --- a/src/libbio/bfmt.c +++ b/src/libbio/bfmt.c @@ -7,7 +7,7 @@ _Bfmtflush(Fmt *f) Biobuf *b; b = f->farg; - b->ocount = f->to - f->stop; + b->ocount = (char*)f->to - (char*)f->stop; if(Bflush(b) < 0) return 0; f->to = b->ebuf+b->ocount; |