commit d99b2f34e69bc363c2973a2473e75654196ab40e from: rsc date: Fri Mar 26 19:20:10 2004 UTC Sometimes it's amazing these haven't been turned up by other compilers. commit - 6e9a344ddd8531ceb58a6ae4af610ce06523e918 commit + d99b2f34e69bc363c2973a2473e75654196ab40e blob - a12931e8d1b85cd45bb9f00b83f88858ff8753a4 blob + fc81fa98d46926155e25f972c3e4e3c3fdef7f19 --- CHANGES +++ CHANGES @@ -9,6 +9,8 @@ March 26, 2004 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. blob - 4d2a79efc69006750f6a0e526d2812bb09be677c blob + 12edb0e4b9df34f2447bc5fd3cfb880264303c91 --- src/lib9/notify.c +++ 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; blob - f1b6f5ab817e6a5308df74a21c6980b1c1bef840 blob + 4e0b6206765269284c8d27a0a6cc900beba51b25 --- src/libbio/bfmt.c +++ 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;