static void recv_cb(long offset) { check_cancel_update(); if(final_size > 0 && offset > final_size) { error("Transferred more than expected uncompressed size.", 1, 8, 0); cancel_update = true; return; } meter_interior(offset, final_size); update_screen(); }
static void meter_update_screen(int *curr, int target) { (*curr)++; meter_interior(*curr, target); update_screen(); }