get_next_prid
static int get_next_prid(struct prison **insprp);
if (jid == 0 && (jid = get_next_prid(&inspr)) == 0) {