mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 07:46:02 +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
|
||||
magic_t magic;
|
||||
#else
|
||||
void* magic;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -126,7 +128,7 @@ guess_type_file(const char* path)
|
|||
/* g_spawn_async expects char** */
|
||||
static char cmd_file[] = "file";
|
||||
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 };
|
||||
|
||||
GError* error = NULL;
|
||||
|
|
Loading…
Reference in a new issue