Corrected datatype of salen to fix compiler warning
This commit is contained in:
parent
0ac647ab98
commit
8848b647d7
@ -236,7 +236,7 @@ int
|
|||||||
getpeer_information(int fd, char *ipaddr, char *string_addr)
|
getpeer_information(int fd, char *ipaddr, char *string_addr)
|
||||||
{
|
{
|
||||||
struct sockaddr_storage sa;
|
struct sockaddr_storage sa;
|
||||||
size_t salen = sizeof(sa);
|
socklen_t salen = sizeof sa;
|
||||||
|
|
||||||
assert(fd >= 0);
|
assert(fd >= 0);
|
||||||
assert(ipaddr != NULL);
|
assert(ipaddr != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user