summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-08-24 20:15:48 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-08-26 23:43:27 +0100
commit0ae2e68e24b938ac84bbea5740c53192d08bb7f1 (patch)
treee1095901d067e60ac86f114c78b49571a3407e44
parent1f5d0a9551205febf6729c7ee36c27626a76b4a4 (diff)
tidying
-rw-r--r--src/src/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/src/debug.c b/src/src/debug.c
index fee0b7a81..f7002b147 100644
--- a/src/src/debug.c
+++ b/src/src/debug.c
@@ -352,7 +352,7 @@ if (fstat(fd, &s) == 0 && (s.st_mode & S_IFMT) == S_IFSOCK)
g = string_fmt_append(g, " lcl [%s]:%u",
inet_ntoa(sinp->sin_addr), ntohs(sinp->sin_port));
alen = sizeof(*sinp);
- if (getpeername(fd, sinp, &alen) == 0)
+ if (getpeername(fd, (struct sockaddr *)sinp, &alen) == 0)
g = string_fmt_append(g, " rmt [%s]:%u",
inet_ntoa(sinp->sin_addr), ntohs(sinp->sin_port));
break;
@@ -364,7 +364,7 @@ if (fstat(fd, &s) == 0 && (s.st_mode & S_IFMT) == S_IFSOCK)
inet_ntop(AF_INET6, &sin6p->sin6_addr, CS buf, sizeof(buf)),
ntohs(sin6p->sin6_port));
alen = sizeof(*sin6p);
- if (getpeername(fd, sin6p, &alen) == 0)
+ if (getpeername(fd, (struct sockaddr *)sin6p, &alen) == 0)
g = string_fmt_append(g, " rmt [%s]:%u",
inet_ntop(AF_INET6, &sin6p->sin6_addr, CS buf, sizeof(buf)),
ntohs(sin6p->sin6_port));
@@ -377,7 +377,7 @@ if (fstat(fd, &s) == 0 && (s.st_mode & S_IFMT) == S_IFSOCK)
sunp->sun_path[0] ? US"" : US"@",
sunp->sun_path[0] ? sunp->sun_path : sunp->sun_path+1);
alen = sizeof(*sunp);
- if (getpeername(fd, sunp, &alen) == 0)
+ if (getpeername(fd, (struct sockaddr *)sunp, &alen) == 0)
g = string_fmt_append(g, " rmt %s%s",
sunp->sun_path[0] ? US"" : US"@",
sunp->sun_path[0] ? sunp->sun_path : sunp->sun_path+1);