summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-05-11 12:20:48 +0300
committerAndrei Karas <akaras@inbox.ru>2020-05-11 12:20:48 +0300
commitf8a9cbf78a0ae2f1d571f773275cd6493fb1a4ea (patch)
tree6029f4050a42609fb5045565ea7668cd84e32a3d /src/fs
parent595155193e6f9202d240f0798a39e33a6779366a (diff)
downloadplus-f8a9cbf78a0ae2f1d571f773275cd6493fb1a4ea.tar.gz
plus-f8a9cbf78a0ae2f1d571f773275cd6493fb1a4ea.tar.bz2
plus-f8a9cbf78a0ae2f1d571f773275cd6493fb1a4ea.tar.xz
plus-f8a9cbf78a0ae2f1d571f773275cd6493fb1a4ea.zip
Remove useless struct keyword
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/files.cpp4
-rw-r--r--src/fs/paths.cpp2
-rw-r--r--src/fs/virtfs/fsdir.cpp8
3 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/files.cpp b/src/fs/files.cpp
index 1ff57ad9f..fcce1c0ea 100644
--- a/src/fs/files.cpp
+++ b/src/fs/files.cpp
@@ -271,7 +271,7 @@ void Files::saveTextFile(const std::string &path,
void Files::deleteFilesInDirectory(std::string path)
{
path = pathJoin(path, dirSeparator);
- const struct dirent *next_file = nullptr;
+ const dirent *next_file = nullptr;
DIR *const dir = opendir(path.c_str());
if (dir != nullptr)
@@ -296,7 +296,7 @@ void Files::enumFiles(StringVect &files,
if (dir != nullptr)
{
- const struct dirent *next_file = nullptr;
+ const dirent *next_file = nullptr;
while ((next_file = readdir(dir)) != nullptr)
{
const std::string file = next_file->d_name;
diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp
index a639dacba..273dbd59f 100644
--- a/src/fs/paths.cpp
+++ b/src/fs/paths.cpp
@@ -264,7 +264,7 @@ std::string getHomePath()
if (path == nullptr)
{
const uid_t uid = getuid();
- const struct passwd *const pw = getpwuid(uid);
+ const passwd *const pw = getpwuid(uid);
if (pw != nullptr &&
pw->pw_dir != nullptr)
{
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp
index dcac978c7..285104146 100644
--- a/src/fs/virtfs/fsdir.cpp
+++ b/src/fs/virtfs/fsdir.cpp
@@ -194,7 +194,7 @@ namespace FsDir
{
const std::string path = static_cast<DirEntry*>(entry)->rootSubDir +
dirName;
- const struct dirent *next_file = nullptr;
+ const dirent *next_file = nullptr;
DIR *const dir = opendir(path.c_str());
if (dir != nullptr)
{
@@ -538,7 +538,7 @@ namespace FsDir
{
const std::string path = static_cast<DirEntry*>(entry)->rootSubDir +
dirName;
- const struct dirent *next_file = nullptr;
+ const dirent *next_file = nullptr;
DIR *const dir = opendir(path.c_str());
if (dir != nullptr)
{
@@ -588,7 +588,7 @@ namespace FsDir
{
const std::string path = static_cast<DirEntry*>(entry)->rootSubDir +
dirName;
- const struct dirent *next_file = nullptr;
+ const dirent *next_file = nullptr;
DIR *const dir = opendir(path.c_str());
if (dir != nullptr)
{
@@ -638,7 +638,7 @@ namespace FsDir
{
const std::string path = static_cast<DirEntry*>(entry)->rootSubDir +
dirName;
- const struct dirent *next_file = nullptr;
+ const dirent *next_file = nullptr;
DIR *const dir = opendir(path.c_str());
if (dir != nullptr)
{