Fixed check of max_poll_time as it is an unsigned int.