Skip to content

Commit 86a2ca5

Browse files
committed
Fix some warnings, leave note about single-client tools
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 1f03659 commit 86a2ca5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,4 @@ Unless compiled with GCC 3.3 or later, jack_interposer only works for
6262
single-CPU machines, or machines configured to run the application under test
6363
on a single CPU.
6464

65-
== Related applications ==
66-
67-
http://trac.jackaudio.org/wiki/WalkThrough/Dev/Tools
65+
This tool only works for single-client applications.

jack_interposer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ bool THREAD_LOCAL in_rt = false;
3737
#include "checkers.c"
3838
#include "manual.c"
3939

40-
JackProcessCallback real_process_callback;
40+
static JackProcessCallback real_process_callback;
4141

42-
int interposed_process_callback(jack_nframes_t nframes, void* arg)
42+
static int interposed_process_callback(jack_nframes_t nframes, void* arg)
4343
{
4444
int result;
4545

@@ -55,7 +55,7 @@ int interposed_process_callback(jack_nframes_t nframes, void* arg)
5555
int jack_set_process_callback(jack_client_t* client,
5656
JackProcessCallback process_callback, void* arg)
5757
{
58-
static int (*func)() = NULL;
58+
static int (*func)(jack_client_t*, JackProcessCallback, void*) = NULL;
5959
int result;
6060

6161
if (getenv("JACK_INTERPOSER_NO_ABORT") != NULL)
@@ -64,7 +64,7 @@ int jack_set_process_callback(jack_client_t* client,
6464
fprintf(stderr, "jack_interposer: wrapping process callback\n");
6565

6666
if(!func)
67-
func = (int(*)()) dlsym(RTLD_NEXT, "jack_set_process_callback");
67+
func = (int(*)(jack_client_t*, JackProcessCallback, void*)) dlsym(RTLD_NEXT, "jack_set_process_callback");
6868
if(!func)
6969
{
7070
fprintf(stderr, "Error dlsym'ing jack_set_process_callback\n");

0 commit comments

Comments
 (0)