mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Minor
This commit is contained in:
parent
03f4da1b46
commit
98770e2842
5
ctpv.c
5
ctpv.c
@ -31,13 +31,14 @@ static struct {
|
|||||||
char *server_id_s;
|
char *server_id_s;
|
||||||
} ctpv = { .mode = MODE_PREVIEW };
|
} ctpv = { .mode = MODE_PREVIEW };
|
||||||
|
|
||||||
static void cleanup(void) {
|
static void cleanup(void)
|
||||||
|
{
|
||||||
cleanup_previews();
|
cleanup_previews();
|
||||||
if (magic != NULL)
|
if (magic != NULL)
|
||||||
magic_close(magic);
|
magic_close(magic);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_magic()
|
static int init_magic(void)
|
||||||
{
|
{
|
||||||
ERRCHK_RET(!(magic = magic_open(MAGIC_MIME_TYPE)), FUNCFAILED("magic_open"),
|
ERRCHK_RET(!(magic = magic_open(MAGIC_MIME_TYPE)), FUNCFAILED("magic_open"),
|
||||||
magic_error(magic));
|
magic_error(magic));
|
||||||
|
Loading…
Reference in New Issue
Block a user