CBlock::WriteToDisk() properly checks ftell(3) for error return
authorJeff Garzik <jgarzik@exmulti.com>
Sun, 22 Apr 2012 17:59:24 +0000 (13:59 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 23 Apr 2012 18:14:36 +0000 (14:14 -0400)
commit5aa0b2382515eb92fe249a106059f3b6a9328d26
treebea59d8369abddbe0f517270708404822a98b198
parent1d8c7a9557d596d4c7edee801a724db7a908bce5
CBlock::WriteToDisk() properly checks ftell(3) for error return

Rather than storing ftell(3)'s return value -- a long -- in an
unsigned int, we store and check a properly typed temp.  Then, assured a
non-negative value, we store in nBlockPosRet.
src/main.h