X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Futils%2Fcommon.c;h=8c5e850722d545017fb4deccb9226f5d0dedd465;hb=7dec5799318ba69cad36d625bf6b78bd118bfbc8;hp=dbc63d97f47d00311491724d8bc443f8f4ca9bbb;hpb=7c7301d5827bd10ec7c34da7ffc5fe74e5047d38;p=babeltrace.git diff --git a/tests/utils/common.c b/tests/utils/common.c index dbc63d97..8c5e8507 100644 --- a/tests/utils/common.c +++ b/tests/utils/common.c @@ -1,22 +1,9 @@ /* - * common.c + * SPDX-License-Identifier: GPL-2.0-only * - * Lib BabelTrace - Common function to all tests - * - * Copyright 2012 - Yannick Brosseau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; under version 2 of the License. + * Copyright (C) 2012 Yannick Brosseau * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * Lib BabelTrace - Common function to all tests */ #include "common.h" @@ -29,8 +16,10 @@ #define RMDIR_NFDOPEN 8 static -int nftw_recursive_rmdir(const char *file, const struct stat *sb, int flag, - struct FTW *s) +int nftw_recursive_rmdir(const char *file, + const struct stat *sb __attribute__((unused)), + int flag, + struct FTW *s __attribute__((unused))) { switch (flag) { case FTW_F: