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)
committerLuke Dashjr <luke-jr+git@utopios.org>
Tue, 24 Apr 2012 05:00:15 +0000 (01:00 -0400)
commitc21121752d95ee241eb616a9b958fc662c874803
tree68a4179cc5469eb3e27c668c604f3401e9105919
parentd0fe14ffecda4af98ffe7b1523f9a903bf7518a0
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