summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-01-14 08:26:23 +0000
committerJulian Andres Klode <jak@debian.org>2025-01-14 08:26:23 +0000
commitce452d40f499fa56f6ddc15e8871b1262d4e1418 (patch)
treecca88ab8b56520eec386921aa51906d7bdf4f385 /methods/connect.cc
parentf9a59225c3b1e025ad93116773cc7825621809c8 (diff)
parentaa4c681f09f06359c0892329b9e39da77e4f9fda (diff)
Merge branch 'fix/cleanup' into 'main'
Drop unused and obsolete macros as well as documentation See merge request apt-team/apt!428
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index eeee7c509..ec0a5c1f9 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -89,10 +89,10 @@ static bool ConnectionAllowed(char const * const Service, std::string const &Hos
struct FdFd final : public MethodFd
{
int fd = -1;
- int Fd() APT_OVERRIDE { return fd; }
- ssize_t Read(void *buf, size_t count) APT_OVERRIDE { return ::read(fd, buf, count); }
- ssize_t Write(void *buf, size_t count) APT_OVERRIDE { return ::write(fd, buf, count); }
- int Close() APT_OVERRIDE
+ int Fd() override { return fd; }
+ ssize_t Read(void *buf, size_t count) override { return ::read(fd, buf, count); }
+ ssize_t Write(void *buf, size_t count) override { return ::write(fd, buf, count); }
+ int Close() override
{
int result = 0;
if (fd != -1)