lttng-ctl: health: remove unreachable condition
[lttng-tools.git] / tests / unit / test_directory_handle.c
index c14066909ee1212b2412d276f8ec8147a6a6a5e5..8bc59e08169809bfc5773f2b89211ee3015d2b44 100644 (file)
@@ -1,22 +1,11 @@
 /*
- * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * 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 <assert.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -27,6 +16,7 @@
 #include <unistd.h>
 
 #include <common/compat/directory-handle.h>
+#include <common/compat/errno.h>
 #include <common/error.h>
 #include <tap/tap.h>
 
@@ -136,6 +126,7 @@ end:
 }
 
 /* Remove "file1" from the test folder hierarchy. */
+static
 int remove_file_from_hierarchy(struct lttng_directory_handle *test_dir_handle,
                const char *test_root_name)
 {
This page took 0.023727 seconds and 4 git commands to generate.