summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-01-13 10:12:28 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-01-13 10:12:28 +0800
commite2c1d96a01bf29de6a9fdd42e6a3be7a49f63876 (patch)
treefff54ef26782926a68713be38f6bf9bb05b8b4f9
parentf1478a3d6d6e84357f4f3c9871bec807e7c342c5 (diff)
Simplify IRC context structure initialisation
-rw-r--r--dircpsa.c2
1 files changed, 1 insertions, 1 deletions
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 <channel> <log>\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));