X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fcompile%2Ftest-app-ctx%2Fhello.c;h=c08fa8dd0347eef348aa0ebafa389796d9397264;hb=4b4a133740c87d9a851023a7aeb06b78d887e51b;hp=6e16b12fac871b19e011fc60f03a6433b6df0990;hpb=5f6daaef86c3b4cff5af523cbbd8f2630634259d;p=lttng-ust.git diff --git a/tests/compile/test-app-ctx/hello.c b/tests/compile/test-app-ctx/hello.c index 6e16b12f..c08fa8dd 100644 --- a/tests/compile/test-app-ctx/hello.c +++ b/tests/compile/test-app-ctx/hello.c @@ -35,6 +35,7 @@ struct mmsghdr; static __thread unsigned int test_count; +static void test_inc_count(void) { test_count++; @@ -250,12 +251,14 @@ struct lttng_ust_context_provider myprovider = { .get_value = test_get_value, }; +static void inthandler(int sig) { printf("in SIGUSR1 handler\n"); tracepoint(ust_tests_hello, tptest_sighandler); } +static int init_int_handler(void) { int result; @@ -283,8 +286,6 @@ int init_int_handler(void) return 0; } -void test_inc_count(void); - int main(int argc, char **argv) { int i, netint;