[mednaffe] 92/99: Remove GError from last commit
Stephen Kitt
skitt at moszumanska.debian.org
Tue Aug 2 21:00:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch master
in repository mednaffe.
commit 3d6d39c115f11c1da6488801a00c98d3334dabc8
Author: AmatCoder <amatcoder at gmail.com>
Date: Fri Jul 24 13:15:10 2015 +0200
Remove GError from last commit
---
src/command.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/command.c b/src/command.c
index 7a4da56..ad19bb4 100644
--- a/src/command.c
+++ b/src/command.c
@@ -96,7 +96,7 @@ gchar **build_command(guidata *gui)
gboolean out_watch( GIOChannel *channel, GIOCondition cond, guidata *gui)
{
gsize size;
-GError *err = NULL;
+
if (cond == G_IO_HUP)
{
g_io_channel_unref(channel);
@@ -106,7 +106,7 @@ GError *err = NULL;
g_free(gui->m_error);
gui->m_error= NULL;
- if (g_io_channel_read_line(channel, &gui->m_error, &size, NULL, &err) != G_IO_STATUS_NORMAL)
+ if (g_io_channel_read_line(channel, &gui->m_error, &size, NULL, NULL) != G_IO_STATUS_NORMAL)
return TRUE;
if (gui->m_error != NULL)
@@ -319,7 +319,7 @@ void row_exec(GtkTreeView *treeview, GtkTreePath *patho,
out_ch = g_io_channel_unix_new(out);
g_io_channel_set_encoding(out_ch, NULL, NULL);
- g_io_channel_set_flags (out_ch, G_IO_FLAG_NONBLOCK| G_IO_FLAG_APPEND, NULL);
+ g_io_channel_set_flags (out_ch, G_IO_FLAG_NONBLOCK, NULL);
g_io_add_watch(out_ch, G_IO_IN|G_IO_HUP, (GIOFunc)out_watch, gui);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git
More information about the Pkg-games-commits
mailing list