mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[lookup] cast
This commit is contained in:
parent
0de00f8555
commit
86f50716fe
@ -205,7 +205,7 @@ lookup_cmd(struct option *o, char ***argv, int *argc)
|
||||
printf("%s\n", p);
|
||||
#else
|
||||
struct sockaddr_in addr = *((struct sockaddr_in *) &(addrs)[i]);
|
||||
unsigned char *p = (char *) &addr.sin_addr.s_addr;
|
||||
unsigned char *p = (unsigned char *) &addr.sin_addr.s_addr;
|
||||
|
||||
printf("%d.%d.%d.%d\n", (int) p[0], (int) p[1],
|
||||
(int) p[2], (int) p[3]);
|
||||
|
Loading…
Reference in New Issue
Block a user