From 7f1bad17de235b852211603572cce471247bc4e8 Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Sun, 7 Sep 2014 11:59:16 +0200 Subject: [PATCH] fspscan: silence clang warning about empty body in for cycle --- contrib/fspscan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/fspscan.c b/contrib/fspscan.c index 0c28784..f880aea 100644 --- a/contrib/fspscan.c +++ b/contrib/fspscan.c @@ -289,7 +289,8 @@ int _x_adr(char *xhost,int port,struct sockaddr_in *his) if((H = gethostbyname(xhost))) { for(s = (char *)H->h_addr, d = (char *)&his->sin_addr, - i = H->h_length; i--; *d++ = *s++); + i = H->h_length; i--; *d++ = *s++) + ; his->sin_family = H->h_addrtype; } else return(-1); his->sin_port = htons((unsigned short) port);