Change NZERO to 20 to always make p_nice positive. On Christos' suggestion make p_nice explicitly u_char.