Sometimes it's amazing these haven't been turned
up by other compilers.
diff --git a/CHANGES b/CHANGES
index a12931e..fc81fa9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -9,6 +9,8 @@
9term OpenBSD support from Markus Friedl.
+ More appeasement of Sun C compiler.
+
March 25, 2004
Change putenv not to free the string after calling real putenv.
diff --git a/src/lib9/notify.c b/src/lib9/notify.c
index 4d2a79e..12edb0e 100644
--- a/src/lib9/notify.c
+++ b/src/lib9/notify.c
@@ -69,7 +69,7 @@
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 f1b6f5a..4e0b620 100644
--- a/src/libbio/bfmt.c
+++ b/src/libbio/bfmt.c
@@ -7,7 +7,7 @@
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;