... | ... |
@@ -241,7 +241,7 @@ static int comp_ip(unsigned a, void* param, int op, int subtype) |
241 | 241 |
if (ret==1) break; |
242 | 242 |
/* 2: (slow) rev dns the address |
243 | 243 |
* and compare with all the aliases */ |
244 |
- he=gethostbyaddr(&a, sizeof(a), AF_INET); |
|
244 |
+ he=gethostbyaddr((char*)&a, sizeof(a), AF_INET); |
|
245 | 245 |
if (he==0){ |
246 | 246 |
LOG(L_DBG, "comp_ip: could not rev_resolve %x\n", a); |
247 | 247 |
ret=0; |