From: Michael Tremer Date: Tue, 6 Apr 2021 17:38:19 +0000 (+0000) Subject: errno: Drop the rest of this implementation X-Git-Tag: 0.9.28~1285^2~417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ceb64b07815fe4588a19922ef51374db0cf08a5;p=pakfire.git errno: Drop the rest of this implementation Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 4320cd4be..9052a26a4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -261,7 +261,6 @@ libpakfire_la_SOURCES = \ src/libpakfire/db.c \ src/libpakfire/dist.c \ src/libpakfire/downloader.c \ - src/libpakfire/errno.c \ src/libpakfire/execute.c \ src/libpakfire/file.c \ src/libpakfire/filelist.c \ @@ -297,7 +296,6 @@ pkginclude_HEADERS += \ src/libpakfire/include/pakfire/db.h \ src/libpakfire/include/pakfire/dist.h \ src/libpakfire/include/pakfire/downloader.h \ - src/libpakfire/include/pakfire/errno.h \ src/libpakfire/include/pakfire/execute.h \ src/libpakfire/include/pakfire/file.h \ src/libpakfire/include/pakfire/filelist.h \ diff --git a/src/_pakfire/problem.c b/src/_pakfire/problem.c index 6792f6c14..5bb90b44e 100644 --- a/src/_pakfire/problem.c +++ b/src/_pakfire/problem.c @@ -21,7 +21,6 @@ #include #include -#include #include #include "problem.h" diff --git a/src/_pakfire/solution.c b/src/_pakfire/solution.c index 309f3c587..174f45945 100644 --- a/src/_pakfire/solution.c +++ b/src/_pakfire/solution.c @@ -21,7 +21,6 @@ #include #include -#include #include #include "solution.h" diff --git a/src/libpakfire/errno.c b/src/libpakfire/errno.c deleted file mode 100644 index a43284b8f..000000000 --- a/src/libpakfire/errno.c +++ /dev/null @@ -1,29 +0,0 @@ -/*############################################################################# -# # -# Pakfire - The IPFire package management system # -# Copyright (C) 2013 Pakfire development team # -# # -# 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, either version 3 of the License, or # -# (at your option) any later version. # -# # -# 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, see . # -# # -#############################################################################*/ - -#include "errno.h" - -#include - -__thread int pakfire_errno = 0; - -PAKFIRE_EXPORT int pakfire_get_errno(void) { - return pakfire_errno; -} diff --git a/src/libpakfire/include/pakfire/errno.h b/src/libpakfire/include/pakfire/errno.h deleted file mode 100644 index e270ebfba..000000000 --- a/src/libpakfire/include/pakfire/errno.h +++ /dev/null @@ -1,32 +0,0 @@ -/*############################################################################# -# # -# Pakfire - The IPFire package management system # -# Copyright (C) 2013 Pakfire development team # -# # -# 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, either version 3 of the License, or # -# (at your option) any later version. # -# # -# 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, see . # -# # -#############################################################################*/ - -#ifndef PAKFIRE_ERRNO_H -#define PAKFIRE_ERRNO_H - -enum _pakfire_errors { - PAKFIRE_E_NONE -}; - -extern __thread int pakfire_errno; - -int pakfire_get_errno(void); - -#endif /* PAKFIRE_ERRNO_H */ diff --git a/src/libpakfire/libpakfire.sym b/src/libpakfire/libpakfire.sym index c7e43944e..6afe80bbc 100644 --- a/src/libpakfire/libpakfire.sym +++ b/src/libpakfire/libpakfire.sym @@ -411,7 +411,6 @@ global: pakfire_basename; pakfire_dirname; pakfire_generate_uuid; - pakfire_get_errno; pakfire_path_isdir; pakfire_path_join; pakfire_path_relpath; diff --git a/src/libpakfire/parser.c b/src/libpakfire/parser.c index 7b4c08e4b..d660a39e4 100644 --- a/src/libpakfire/parser.c +++ b/src/libpakfire/parser.c @@ -28,7 +28,6 @@ #define PCRE2_CODE_UNIT_WIDTH 8 #include -#include #include #include #include diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index 25b055265..e56c6e6f7 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include diff --git a/src/libpakfire/selector.c b/src/libpakfire/selector.c index 89f4c690b..dded62959 100644 --- a/src/libpakfire/selector.c +++ b/src/libpakfire/selector.c @@ -24,7 +24,6 @@ #include #include -#include #include #include #include @@ -374,9 +373,6 @@ PAKFIRE_EXPORT int pakfire_selector2queue(const PakfireSelector selector, Queue* } finish: - if (ret) - pakfire_errno = ret; - queue_free(&queue_selector); return ret;