Fix warning when compiling for IPv4.