summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-11 23:25:38 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-11 23:25:38 +0200
commitb860471279dfd3ec4dcdba9c02b7886869459ec8 (patch)
tree5c7d9311d7018922a634abaa23ae35f56de8dbb5 /utils.h
parentea836c09048453babda517e6a440d7266304ca02 (diff)
Oops....fixup connect_any callback throughout
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.h b/utils.h
index 41c71e5..adedc37 100644
--- a/utils.h
+++ b/utils.h
@@ -45,7 +45,7 @@ struct connection {
struct list_head *addrs;
unsigned next_addr;
- void (*callback)(struct cfg *, struct connection *, int res);
+ void (*callback)(struct cfg *, struct connection *, bool);
};
struct uring_task;
@@ -59,7 +59,7 @@ void connection_set_remote(struct cfg *cfg, struct connection *conn,
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));
uint16_t sockaddr_port(struct sockaddr_in46 *addr);