From 20b0d509f67dea802706cd6b80b5e20d14988931 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 27 Apr 2020 11:59:02 +0200 Subject: Cleanup directory structure of the binary programs Instead of having the binary programs in randomly named subdirectories, move all of them to a "bin" subdirectory, similar to the utility libraries that have subdirectories within "lib" and give the subdirectories the propper names (e.g. have gensquashfs source in a directory *actually* named "gensquashfs"). Signed-off-by: David Oberhollenzer --- difftool/util.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 difftool/util.c (limited to 'difftool/util.c') diff --git a/difftool/util.c b/difftool/util.c deleted file mode 100644 index 5e9161a..0000000 --- a/difftool/util.c +++ /dev/null @@ -1,25 +0,0 @@ -/* SPDX-License-Identifier: GPL-3.0-or-later */ -/* - * util.c - * - * Copyright (C) 2019 David Oberhollenzer - */ -#include "sqfsdiff.h" - -char *node_path(const sqfs_tree_node_t *n) -{ - char *path = sqfs_tree_node_get_path(n); - - if (path == NULL) { - perror("get path"); - return NULL; - } - - if (canonicalize_name(path)) { - fprintf(stderr, "failed to canonicalization '%s'\n", path); - free(path); - return NULL; - } - - return path; -} -- cgit v1.2.3