X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Flow-throughput%2Fmain.c;h=b419d1f5bcab181d2a797f0913780ff45153cf3b;hb=f46376a14da2eb796690cb4e718e8b213839d6ea;hp=06ab9ef825ae20c6c73c08ae7d9091aa0dfceabe;hpb=5d2e1e66a968d9e555f9b8b00d0589ebfaf3de32;p=lttng-tools.git diff --git a/tests/regression/ust/low-throughput/main.c b/tests/regression/ust/low-throughput/main.c index 06ab9ef82..b419d1f5b 100644 --- a/tests/regression/ust/low-throughput/main.c +++ b/tests/regression/ust/low-throughput/main.c @@ -1,19 +1,8 @@ /* - * Copyright (C) 2012 - David Goulet + * Copyright (C) 2012 David Goulet * - * 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; version 2.1 of - * the License. + * SPDX-License-Identifier: LGPL-2.1-only * - * 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 @@ -27,14 +16,14 @@ /* * Thread recording a tracepoint every minute for 20 minutes. */ -static void *th_event_minute(void *data) +static void *th_event_minute(void *data __attribute__((unused))) { int i; /* Loop for 20 minutes */ for (i = 1; i < 21; i++) { /* Sleep 60 seconds */ - poll(NULL, 0, 60000); + (void) poll(NULL, 0, 60000); /* 20 minutes tracepoint */ if ((i % 20) == 0) { @@ -56,7 +45,7 @@ static void *th_event_minute(void *data) /* * main */ -int main(int argc, char **argv) +int main(void) { int ret; void *status;