static int load_signature(struct asfd *asfd, rs_signature_t **sumset, struct conf *conf) { rs_result r; rs_job_t *job; job = rs_loadsig_begin(sumset); if((r=do_rs_run(asfd, job, NULL, NULL, NULL, NULL, NULL, asfd->fd, -1, conf->cntr))) { rs_free_sumset(*sumset); return r; } if((r=rs_build_hash_table(*sumset))) return r; rs_job_free(job); return r; }
static int load_signature(rs_signature_t **sumset, struct cntr *cntr) { rs_result r; rs_job_t *job; //logp("loadsig %s\n", rpath); job = rs_loadsig_begin(sumset); if((r=do_rs_run(job, NULL, NULL, NULL, NULL, NULL, async_get_fd(), -1, cntr))) { rs_free_sumset(*sumset); return r; } if((r=rs_build_hash_table(*sumset))) { return r; } rs_job_free(job); //logp("end loadsig\n"); //logp("\n"); return r; }