From 31afd2aaaeb76a12e232eab0fb6a550b73948737 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Mon, 22 Jun 2020 10:50:15 +0200 Subject: Make struct cfg global and make the corresponding changes throughout --- main.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.h') diff --git a/main.h b/main.h index e418f38..488ae8d 100644 --- a/main.h +++ b/main.h @@ -8,8 +8,8 @@ struct cfg; #include "utils.h" +extern struct cfg *cfg; extern bool exiting; - extern unsigned debug_mask; enum debug_lvl { @@ -103,8 +103,8 @@ do { \ struct uring_task; /* To save typing in all the function definitions below */ -typedef void (*utask_cb_t)(struct cfg *, struct uring_task *, int res); -typedef int (*rutask_cb_t)(struct cfg *, struct uring_task *, int res); +typedef void (*utask_cb_t)(struct uring_task *, int res); +typedef int (*rutask_cb_t)(struct uring_task *, int res); struct uring_task_buf { char buf[4096]; -- cgit v1.2.3