summaryrefslogtreecommitdiffstats
path: root/polyp/pactl.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/pactl.c')
-rw-r--r--polyp/pactl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/pactl.c b/polyp/pactl.c
index 28b187b0..2f3a4833 100644
--- a/polyp/pactl.c
+++ b/polyp/pactl.c
@@ -205,7 +205,7 @@ fail:
quit(1);
}
-static void exit_signal_callback(void *id, int sig, void *userdata) {
+static void exit_signal_callback(struct pa_mainloop_api *m, struct pa_signal_event *e, int sig, void *userdata) {
fprintf(stderr, "Got SIGINT, exiting.\n");
quit(0);
}
@@ -284,7 +284,7 @@ int main(int argc, char *argv[]) {
r = pa_signal_init(mainloop_api);
assert(r == 0);
- pa_signal_register(SIGINT, exit_signal_callback, NULL);
+ pa_signal_new(SIGINT, exit_signal_callback, NULL);
signal(SIGPIPE, SIG_IGN);
if (!(context = pa_context_new(mainloop_api, argv[0]))) {