Sometimes it's amazing these haven't been turned

up by other compilers.
This commit is contained in:
rsc 2004-03-26 19:20:10 +00:00
parent 6e9a344ddd
commit d99b2f34e6
3 changed files with 4 additions and 2 deletions

View file

@ -9,6 +9,8 @@ March 26, 2004
9term OpenBSD support from Markus Friedl. 9term OpenBSD support from Markus Friedl.
More appeasement of Sun C compiler.
March 25, 2004 March 25, 2004
Change putenv not to free the string after calling real putenv. Change putenv not to free the string after calling real putenv.

View file

@ -69,7 +69,7 @@ notify(void (*f)(void*, char*))
struct sigaction sa; struct sigaction sa;
memset(&sa, 0, sizeof sa); memset(&sa, 0, sizeof sa);
if(f == nil) if(f == 0)
sa.sa_handler = SIG_DFL; sa.sa_handler = SIG_DFL;
else{ else{
notifyf = f; notifyf = f;

View file

@ -7,7 +7,7 @@ _Bfmtflush(Fmt *f)
Biobuf *b; Biobuf *b;
b = f->farg; b = f->farg;
b->ocount = f->to - f->stop; b->ocount = (char*)f->to - (char*)f->stop;
if(Bflush(b) < 0) if(Bflush(b) < 0)
return 0; return 0;
f->to = b->ebuf+b->ocount; f->to = b->ebuf+b->ocount;