Use unsigned int for timeout