1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[lookup] cast

This commit is contained in:
Witold Filipczyk 2022-05-10 15:29:54 +02:00
parent 0de00f8555
commit 86f50716fe

View File

@ -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]);