mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Minor
This commit is contained in:
parent
6bc8da73ca
commit
ea3a852acc
18
ctpv.c
18
ctpv.c
@ -131,19 +131,19 @@ static int preview(int argc, char *argv[])
|
|||||||
return run_preview(get_ext(f), mimetype, &args);
|
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)
|
static int list(void)
|
||||||
@ -302,13 +302,13 @@ int main(int argc, char *argv[])
|
|||||||
ret = preview(argc, argv);
|
ret = preview(argc, argv);
|
||||||
break;
|
break;
|
||||||
case MODE_SERVER:
|
case MODE_SERVER:
|
||||||
ret = server(ctpv.server_id_s);
|
ret = server();
|
||||||
break;
|
break;
|
||||||
case MODE_CLEAR:
|
case MODE_CLEAR:
|
||||||
ret = clear(ctpv.server_id_s);
|
ret = clear();
|
||||||
break;
|
break;
|
||||||
case MODE_END:
|
case MODE_END:
|
||||||
ret = end(ctpv.server_id_s);
|
ret = end();
|
||||||
break;
|
break;
|
||||||
case MODE_LIST:
|
case MODE_LIST:
|
||||||
ret = list();
|
ret = list();
|
||||||
|
Loading…
Reference in New Issue
Block a user