ping: Fix aliasing violations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	ping.c

Change-Id: Ie30be5ff6c98f166eed9404bfea9e68108a0c6a5