From ea3a852acc0f0a4a95deacfe3c555d33bf06419c Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Sun, 29 May 2022 23:34:21 +0500 Subject: [PATCH] Minor --- ctpv.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ctpv.c b/ctpv.c index 0fe9205..b4e0280 100644 --- a/ctpv.c +++ b/ctpv.c @@ -131,19 +131,19 @@ static int preview(int argc, char *argv[]) return run_preview(get_ext(f), mimetype, &args); } -static int server(char const *id_s) +static int server(void) { - return server_listen(id_s); + return server_listen(ctpv.server_id_s); } -static int clear(char const *id_s) +static int clear(void) { - return server_clear(id_s); + return server_clear(ctpv.server_id_s); } -static int end(char const *id_s) +static int end(void) { - return server_end(id_s); + return server_end(ctpv.server_id_s); } static int list(void) @@ -302,13 +302,13 @@ int main(int argc, char *argv[]) ret = preview(argc, argv); break; case MODE_SERVER: - ret = server(ctpv.server_id_s); + ret = server(); break; case MODE_CLEAR: - ret = clear(ctpv.server_id_s); + ret = clear(); break; case MODE_END: - ret = end(ctpv.server_id_s); + ret = end(); break; case MODE_LIST: ret = list();