diff options
author | simonmar <unknown> | 1999-12-08 15:47:08 +0000 |
---|---|---|
committer | simonmar <unknown> | 1999-12-08 15:47:08 +0000 |
commit | 4ee0f622625f8e7cc76488e99762a323c46df952 (patch) | |
tree | 3aea37e6a21b358e8cbadffab6f3594b64e81f3a /ghc/lib/std/cbits/writeFile.c | |
parent | 9c370d695ac7b7b7108440b028b017459ae5ef02 (diff) | |
download | haskell-4ee0f622625f8e7cc76488e99762a323c46df952.tar.gz |
[project @ 1999-12-08 15:47:06 by simonmar]
misc ansification and -Wall cleanup
Diffstat (limited to 'ghc/lib/std/cbits/writeFile.c')
-rw-r--r-- | ghc/lib/std/cbits/writeFile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ghc/lib/std/cbits/writeFile.c b/ghc/lib/std/cbits/writeFile.c index 108ce99229..5255ea91eb 100644 --- a/ghc/lib/std/cbits/writeFile.c +++ b/ghc/lib/std/cbits/writeFile.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: writeFile.c,v 1.11 1999/11/26 16:25:57 simonmar Exp $ + * $Id: writeFile.c,v 1.12 1999/12/08 15:47:08 simonmar Exp $ * * hPutStr Runtime Support */ @@ -23,8 +23,6 @@ writeFileObject(StgForeignPtr ptr, StgInt bytes) int rc=0; IOFileObject* fo = (IOFileObject*)ptr; - char *p = (char *) fo->buf; - /* If we've got a r/w file object in our hand, flush the (input) buffer contents first. */ @@ -40,7 +38,7 @@ writeFileObject(StgForeignPtr ptr, StgInt bytes) StgInt writeBuffer(StgForeignPtr ptr, StgInt bytes) { - int count, rc=0; + int count; IOFileObject* fo = (IOFileObject*)ptr; char *pBuf = (char *) fo->buf + fo->bufStart; |