From e2c1d96a01bf29de6a9fdd42e6a3be7a49f63876 Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ Date: Mon, 13 Jan 2020 10:12:28 +0800 Subject: Simplify IRC context structure initialisation --- dircpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dircpsa.c b/dircpsa.c index 461c91d..f7b346a 100644 --- a/dircpsa.c +++ b/dircpsa.c @@ -46,7 +46,7 @@ int main (int argc, char *argv[]) printf("Usage: %s \n", argv[0]); return 1; } - irc_ctx_t ctx = {.channel = argv[1], .log = argv[2]}; + irc_ctx_t ctx = {argv[1], argv[2]}; irc_callbacks_t callbacks; memset(&callbacks, 0, sizeof(callbacks)); -- cgit v1.3