X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Futils%2Fcommon.c;h=8c5e850722d545017fb4deccb9226f5d0dedd465;hb=4847ff77fd02c67f994b09f53babcbe5086b07dd;hp=1878d777d3eba4b78f43523a4dcc8f48fd8719a0;hpb=550b7a4e67a46d1de6b3e83b010b6d38b1c5e7d4;p=babeltrace.git diff --git a/tests/utils/common.c b/tests/utils/common.c index 1878d777..8c5e8507 100644 --- a/tests/utils/common.c +++ b/tests/utils/common.c @@ -1,24 +1,13 @@ /* - * 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" + #include #include #include @@ -27,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: