tSometimes it's amazing these haven't been turned up by other compilers. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d99b2f34e69bc363c2973a2473e75654196ab40e
 (DIR) parent 6e9a344ddd8531ceb58a6ae4af610ce06523e918
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 26 Mar 2004 19:20:10 +0000
       
       Sometimes it's amazing these haven't been turned
       up by other compilers.
       
       Diffstat:
         M CHANGES                             |       2 ++
         M src/lib9/notify.c                   |       2 +-
         M src/libbio/bfmt.c                   |       2 +-
       
       3 files changed, 4 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/CHANGES b/CHANGES
       t@@ -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.
 (DIR) diff --git a/src/lib9/notify.c b/src/lib9/notify.c
       t@@ -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;
 (DIR) diff --git a/src/libbio/bfmt.c b/src/libbio/bfmt.c
       t@@ -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;