From c405a7d93341d2c13167e8ab834c68f7b035a8bb Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sat, 20 Jun 2020 10:56:23 +0200 Subject: Some callback naming consistency --- main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index b2accc1..29ef40c 100644 --- a/main.c +++ b/main.c @@ -603,15 +603,14 @@ signalfd_read(struct cfg *cfg, struct uring_task *task, int res) } else { debug(DBG_DNS, "DNS lookup complete, dns: %p, dns->cb: %p\n", hack_dns, - hack_dns ? hack_dns->callback : NULL); + hack_dns ? hack_dns->cb : NULL); - if (!hack_dns || !hack_dns->callback) { + if (!hack_dns || !hack_dns->cb) { error("DNS callback not set\n"); goto out; } - if (hack_dns && hack_dns->callback) - hack_dns->callback(hack_dns); + hack_dns->cb(hack_dns); } out: -- cgit v1.2.3