[PATCH 2/2] examples: avoid using inet_ntoa()