perform casting of return values of c calls to avoid spurious warnings from c compiler
perform casting of return values of c calls to avoid spurious warnings from c compiler

darcs-hash:299a67058ec6fb515e21f25148fffdf913ffcac8

dpwright/jhc,dpwright/jhc,dpwright/jhc,dpwright/jhc