X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-tracef%2Fgen-ust-tracef.c;h=f0f6cc63c372465363bda2b453c466d810580f3f;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hp=971bfd8d16a5f6d82de2481a5657f7a19c6db1b5;hpb=95983a02c557a99506716fc2c28f74be37def2b3;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c index 971bfd8d1..f0f6cc63c 100644 --- a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c +++ b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c @@ -1,23 +1,12 @@ /* - * Copyright (C) - 2012 David Goulet - * Copyright (C) - 2014 Mathieu Desnoyers + * Copyright (C) 2012 David Goulet + * Copyright (C) 2014 Mathieu Desnoyers * - * 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 */ #define _LGPL_SOURCE -#include #include #include #include @@ -28,16 +17,18 @@ #include #include +#include #include #include "signal-helper.h" const char *str = "test string"; +static void create_file(const char *path) { int ret; - assert(path); + LTTNG_ASSERT(path); ret = creat(path, S_IRWXU); if (ret < 0) {