summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-01-21 20:46:25 +0100
committermathieui <mathieui@mathieui.net>2016-01-21 20:46:25 +0100
commit78aa398e7c09adc4fb9318a4c497e8fd1bcd58ba (patch)
tree46860018019feb7aa24b19b18e7a743fd1bb8c7a /Source/Core/Common/FileUtil.cpp
parent7c3e4b34f3407b95ac1746fe6f4567c744478c60 (diff)
Common: asterisks go against the type name
not the variable name
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
-rw-r--r--Source/Core/Common/FileUtil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp
index 6857262579..bcc996e732 100644
--- a/Source/Core/Common/FileUtil.cpp
+++ b/Source/Core/Common/FileUtil.cpp
@@ -271,7 +271,7 @@ bool Rename(const std::string &srcFilename, const std::string &destFilename)
}
#ifndef _WIN32
-static void FSyncPath(const char *path)
+static void FSyncPath(const char* path)
{
int fd = open(path, O_RDONLY);
if (fd != -1)
@@ -294,7 +294,7 @@ bool RenameSync(const std::string &srcFilename, const std::string &destFilename)
close(fd);
}
#else
- char *path = strdup(srcFilename.c_str());
+ char* path = strdup(srcFilename.c_str());
FSyncPath(path);
FSyncPath(dirname(path));
free(path);
@@ -652,7 +652,7 @@ void CopyDir(const std::string &source_path, const std::string &dest_path)
// Returns the current directory
std::string GetCurrentDir()
{
- char *dir;
+ char* dir;
// Get the current working directory (getcwd uses malloc)
if (!(dir = __getcwd(nullptr, 0)))
{