X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-binary%2Fuserspace-probe-elf-binary.c;h=7a5040051e7314e137b7e22d30ce56f853af0574;hb=HEAD;hp=8488c8a3940ffb9770ca94cba79f553db6d22c9d;hpb=bcf66e7d327496653738061614900f9828553432;p=lttng-tools.git diff --git a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c index 8488c8a39..7a5040051 100644 --- a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c +++ b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c @@ -1,31 +1,20 @@ /* - * Copyright (C) 2017 Francis Deslauriers + * Copyright (C) 2017 Francis Deslauriers * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * SPDX-License-Identifier: LGPL-2.1-or-later * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "foo.h" volatile int not_a_function = 0; -void __attribute__ ((noinline)) test_function(); -void __attribute__ ((noinline)) test_function() +void __attribute__((noinline)) test_function(void); +void __attribute__((noinline)) test_function(void) { not_a_function += 1; } -int main(int argc, char *argv[]) +int main(void) { test_function(); dynamic_symbol(42);