summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2018-09-02 14:08:59 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2018-09-02 14:08:59 +0300
commita0760933bb88f283e629969efaa167705eef593a (patch)
tree935ebe61070544c01fb1fb85a80d8c3f57357275 /src
parent7c4f2cca6bbea95d69461f701cc10df58d77c5ba (diff)
downloadmetacity-a0760933bb88f283e629969efaa167705eef593a.tar.gz
main: fix cast-function-type warning
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c
index bccbd20f..7e6d58ec 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -324,7 +324,9 @@ sigterm_handler (int signum)
}
static gboolean
-on_sigterm (void)
+on_sigterm (GIOChannel *source,
+ GIOCondition condition,
+ gpointer user_data)
{
meta_quit ();
return FALSE;
@@ -372,7 +374,7 @@ main (int argc, char **argv)
channel = g_io_channel_unix_new (sigterm_pipe_fds[0]);
g_io_channel_set_flags (channel, G_IO_FLAG_NONBLOCK, NULL);
- g_io_add_watch (channel, G_IO_IN, (GIOFunc) on_sigterm, NULL);
+ g_io_add_watch (channel, G_IO_IN, on_sigterm, NULL);
g_io_channel_set_close_on_unref (channel, TRUE);
g_io_channel_unref (channel);