X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Fini_config%2Fini_config.c;h=6775ddd3f2f7d5f0902df5a6c796e78eeb75d091;hb=02c3d2c2e3b27ab0bad1207c70465f84b649c816;hp=bf20d1561a616bd24b55f8f062d3c09f1fafc1c5;hpb=1b0bfc2bc022d1e50462b2ef6796c7403067f2d7;p=lttng-tools.git diff --git a/tests/unit/ini_config/ini_config.c b/tests/unit/ini_config/ini_config.c index bf20d1561..6775ddd3f 100644 --- a/tests/unit/ini_config/ini_config.c +++ b/tests/unit/ini_config/ini_config.c @@ -1,18 +1,8 @@ /* - * Copyright (c) - 2013 Jérémie Galarneau + * Copyright (C) 2013 Jérémie Galarneau * - * 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 as - * published by the Free Software Foundation; only version 2 of the License. + * SPDX-License-Identifier: GPL-2.0-only * - * 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. */ #include @@ -34,8 +24,7 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose = 0; int lttng_opt_mi; -int entry_handler(const struct config_entry *entry, - struct state *state) +static int entry_handler(const struct config_entry *entry, struct state *state) { int ret = 0; @@ -89,7 +78,7 @@ int main(int argc, char **argv) } path = utils_expand_path(argv[1]); if (!path) { - fail("Failed to resolve sample INI file path") + fail("Failed to resolve sample INI file path"); } plan_no_plan();