summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-12 20:53:14 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-15 11:07:11 +0100
commitf67fa6dbefc2de64ed31b77fc49b6c3f67c53705 (patch)
tree81ce394961a8bc1bfe65b67122b3f1a9b4a1367b /src
parentf51873b65cb766eb7ade752de912f1ddaf640456 (diff)
downloadpa-sink-ctl-f67fa6dbefc2de64ed31b77fc49b6c3f67c53705.tar.gz
pa-sink-ctl-f67fa6dbefc2de64ed31b77fc49b6c3f67c53705.tar.bz2
pa-sink-ctl-f67fa6dbefc2de64ed31b77fc49b6c3f67c53705.zip
unix_signal: Fix ISO C90 warning
unix_signal.c:140:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] GSource *source; ^
Diffstat (limited to 'src')
-rw-r--r--src/unix_signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix_signal.c b/src/unix_signal.c
index 17c8725..e2d9581 100644
--- a/src/unix_signal.c
+++ b/src/unix_signal.c
@@ -146,9 +146,9 @@ guint
unix_signal_add_full(gint priority, gint signum, GSourceFunc function,
gpointer data, GDestroyNotify notify)
{
- g_return_val_if_fail(function != NULL, 0);
- GSource *source = unix_signal_source_new(signum);
guint id;
+ GSource *source = unix_signal_source_new(signum);
+ g_return_val_if_fail(function != NULL, 0);
if (priority != G_PRIORITY_DEFAULT)
g_source_set_priority (source, priority);