mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 07:56:47 +01:00
Fix warnings and errors
This commit is contained in:
parent
9a4b7ebbde
commit
e8716d041c
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@ struct zathura_content_type_context_s
|
||||||
{
|
{
|
||||||
#ifdef WITH_MAGIC
|
#ifdef WITH_MAGIC
|
||||||
magic_t magic;
|
magic_t magic;
|
||||||
|
#else
|
||||||
|
void* magic;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -126,7 +128,7 @@ guess_type_file(const char* path)
|
||||||
/* g_spawn_async expects char** */
|
/* g_spawn_async expects char** */
|
||||||
static char cmd_file[] = "file";
|
static char cmd_file[] = "file";
|
||||||
static char opt_b[] = "-b";
|
static char opt_b[] = "-b";
|
||||||
static char opt_mime_type = "--mime-type";
|
static char opt_mime_type[] = "--mime-type";
|
||||||
char* argv[] = { cmd_file, opt_b, opt_mime_type, g_strdup(path), NULL };
|
char* argv[] = { cmd_file, opt_b, opt_mime_type, g_strdup(path), NULL };
|
||||||
|
|
||||||
GError* error = NULL;
|
GError* error = NULL;
|
||||||
|
|
Loading…
Reference in a new issue