Commit 91f63730 authored by Landry Breuil's avatar Landry Breuil

rename 'stdout' variable to 'output', on OpenBSD stdout is a macro defined in stdio.h

and build fails with:

exo-execute.c:136:10: error: expected identifier or '('
  gchar *stdout = NULL;
         ^
/usr/include/stdio.h:198:17: note: expanded from macro 'stdout'

error: cannot take the address of an rvalue of type 'FILE *' (aka 'struct __sFILE *')
  if (g_spawn_command_line_sync(query, &stdout, NULL, NULL, NULL))
parent b8533ad8
Pipeline #827 passed with stages
in 2 minutes and 47 seconds
......@@ -133,7 +133,7 @@ static gchar *
find_fallback_application_from_xdg_mime (const gchar *category)
{
const gchar *query = NULL;
gchar *stdout = NULL;
gchar *output = NULL;
gchar *cmd = NULL;
gchar *path = NULL;
GDesktopAppInfo *info = NULL;
......@@ -161,12 +161,12 @@ find_fallback_application_from_xdg_mime (const gchar *category)
if (info == NULL && query != NULL)
{
if (g_spawn_command_line_sync(query, &stdout, NULL, NULL, NULL))
if (g_spawn_command_line_sync(query, &output, NULL, NULL, NULL))
{
if (stdout != NULL)
if (output != NULL)
{
cmd = g_utf8_substring(stdout, 0, g_utf8_strlen(stdout, -1) - 1);
g_free(stdout);
cmd = g_utf8_substring(output, 0, g_utf8_strlen(output, -1) - 1);
g_free(output);
info = g_desktop_app_info_new(cmd);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment