diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-11-22 14:07:42 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-22 14:07:42 +0000 |
| commit | b3c8a3cbb0f51d9cf704ca6a1c050fb50a0fb22d (patch) | |
| tree | bb6f4b311745f5334d95e0d36c7a2f85384f0ee2 /methods/connect.cc | |
| parent | dcb81196776f5c31063e5f57104b4b021f37aa00 (diff) | |
| parent | 8c760266c8c736bff62055c008ab74d78f3ed82a (diff) | |
Merge branch 'fix/warnings' into 'main'
Fix a small bunch of compile-time warnings
See merge request apt-team/apt!404
Diffstat (limited to 'methods/connect.cc')
| -rw-r--r-- | methods/connect.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/connect.cc b/methods/connect.cc index f3e199d0a..12847c594 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -85,7 +85,7 @@ static bool ConnectionAllowed(char const * const Service, std::string const &Hos /*}}}*/ // File Descriptor based Fd /*{{{*/ -struct FdFd : public MethodFd +struct FdFd final : public MethodFd { int fd = -1; int Fd() APT_OVERRIDE { return fd; } @@ -805,7 +805,7 @@ ResultState UnwrapSocks(std::string Host, int Port, URI Proxy, std::unique_ptr<M // UnwrapTLS - Handle TLS connections /*{{{*/ // --------------------------------------------------------------------- /* Performs a TLS handshake on the socket */ -struct TlsFd : public MethodFd +struct TlsFd final : public MethodFd { std::unique_ptr<MethodFd> UnderlyingFd; gnutls_session_t session; |
