Removed deprecated rak errno and file headers.

This commit is contained in:
Jari Sundell
2026-01-03 19:22:02 +01:00
committed by GitHub
parent 110591d5c1
commit a8b6a47054
14 changed files with 38 additions and 331 deletions
+2 -2
View File
@@ -5,7 +5,6 @@
#include <functional>
#include <netdb.h>
#include <unistd.h>
#include <rak/file_stat.h>
#include <rak/path.h>
#include <rak/string_manip.h>
#include <rak/regex.h>
@@ -21,6 +20,7 @@
#include <torrent/net/types.h>
#include <torrent/peer/connection_list.h>
#include <torrent/peer/peer_list.h>
#include <torrent/utils/file_stat.h>
#include <torrent/utils/log.h>
#include <torrent/utils/option_strings.h>
@@ -109,7 +109,7 @@ apply_d_change_link(core::Download* download, const torrent::Object::list_type&
case 1:
{
rak::file_stat fileStat;
torrent::utils::FileStat fileStat;
errno = 0;
if (!fileStat.update_link(link) || !fileStat.is_link() || unlink(link.c_str()) == -1)