Skip to content

Commit

Permalink
Remove negative NULL-check warning
Browse files Browse the repository at this point in the history
According to the docs in the GSourceFuncs, the timeout_ parameter can be
NULL. But when it's NULL, it would be equivalent to an invocation to
return -1 as timeout_ and FALSE as return value. This is exactly the
same, what we're doing if timeout_ is not NULL.
  • Loading branch information
bebehei committed Jan 25, 2018
1 parent 0e0b106 commit e916e41
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/x11/x.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,6 @@ gboolean x_mainloop_fd_prepare(GSource *source, gint *timeout)
{
if (timeout)
*timeout = -1;
else
LOG_E("x_mainloop_fd_prepare: timeout == NULL");
return false;
}

Expand Down

0 comments on commit e916e41

Please sign in to comment.