summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 05fe124..1fa8621 100644
--- a/utils.c
+++ b/utils.c
@@ -202,7 +202,7 @@ void
connection_set_remote(struct cfg *cfg, struct connection *conn, struct sockaddr_in46 *remote)
{
conn->remote = *remote;
- sockaddr_to_str(&conn->remote, &conn->remotestr, sizeof(conn->remotestr));
+ sockaddr_to_str(&conn->remote, conn->remotestr, sizeof(conn->remotestr));
}
static void connect_next(struct cfg *cfg, struct uring_task *task, struct connection *conn);
@@ -273,7 +273,7 @@ again:
void
connect_any(struct cfg *cfg, struct uring_task *task,
struct list_head *addrs, struct connection *conn,
- void (*callback)(struct cfg *, struct connection *, int res))
+ void (*callback)(struct cfg *, struct connection *, bool res))
{
if (!cfg || !task || !addrs || !conn || !callback) {
fprintf(stderr, "%s: invalid arguments\n", __func__);