Fix gcc 'ordered comparison of pointer' warnings

This commit is contained in:
Nick Treleaven 2011-12-30 16:13:40 +00:00
parent e4d2e31b82
commit da8160ac98
2 changed files with 2 additions and 2 deletions

View File

@ -970,7 +970,7 @@ static GPid build_run_cmd(GeanyDocument *doc, guint cmdindex)
run_info[cmdindex].pid = (GPid) 0;
}
if (run_info[cmdindex].pid > 0)
if (run_info[cmdindex].pid != 0)
{
g_child_watch_add(run_info[cmdindex].pid, (GChildWatchFunc) run_exit_cb,
(gpointer)&(run_info[cmdindex]));

View File

@ -359,7 +359,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
gchar *sel;
gint len, remaining, wrote;
if (pid > 0)
if (pid != 0)
g_child_watch_add(pid, (GChildWatchFunc) cc_exit_cb, doc);
/* use GIOChannel to monitor stdout */