From c8b7d3ddd14eb8717dbbc81bf76998020c03e13c Mon Sep 17 00:00:00 2001 From: Rob1103 Date: Fri, 19 May 2023 11:27:41 +0200 Subject: [PATCH] small corrections 2 --- srcs/buildtool/unikraft_files_process.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/srcs/buildtool/unikraft_files_process.go b/srcs/buildtool/unikraft_files_process.go index 35be7f1..d5e434a 100644 --- a/srcs/buildtool/unikraft_files_process.go +++ b/srcs/buildtool/unikraft_files_process.go @@ -236,11 +236,8 @@ func conformPatchPath(match *[]string, index int) { extension := filepath.Ext((*match)[index]) if extension == ".h" || extension == ".hpp" || extension == ".hcc" { (*match)[index] = "include" + u.SEP + filepath.Base((*match)[index]) - } else if extension == ".c" || extension == ".cpp" || extension == ".cc" { - (*match)[index] = filepath.Base((*match)[index]) } else { - u.PrintWarning("Unsupported extension for file: " + - filepath.Base((*match)[index])) + (*match)[index] = filepath.Base((*match)[index]) } }