Replace u_short with uint16_t.