* Initialize the return code. Not sure why this didn't get a warning.
* Pick up changes of hash function properly.
static int checkhash(fhashstate *fh, const char *file, const encodeops *e)
{
static int checkhash(fhashstate *fh, const char *file, const encodeops *e)
{
hfpctx hfp;
dstr dl = DSTR_INIT;
dstr df = DSTR_INIT;
hfpctx hfp;
dstr dl = DSTR_INIT;
dstr df = DSTR_INIT;
case HF_HASH:
xfree(hfp.hbuf);
hfp.hbuf = xmalloc(2 * hfp.gch->hashsz);
case HF_HASH:
xfree(hfp.hbuf);
hfp.hbuf = xmalloc(2 * hfp.gch->hashsz);
break;
case HF_FILE:
if (fhash(fh, df.buf, hfp.hbuf + hfp.gch->hashsz)) {
break;
case HF_FILE:
if (fhash(fh, df.buf, hfp.hbuf + hfp.gch->hashsz)) {