Instead use unsigned int as the backlog type, and check if the backlog is larger than some unreasonable value such as 16k.