summaryrefslogtreecommitdiff
path: root/src/utils/mkdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
commit3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch)
treeea57a752c348ba0a883294855ad3c62c16e9749d /src/utils/mkdir.cpp
parent872fc368f7b253f26714fc47323064f270b62b40 (diff)
downloadmanaplus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz
manaplus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2
manaplus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz
manaplus-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip
Add const to more classes.
Diffstat (limited to 'src/utils/mkdir.cpp')
-rw-r--r--src/utils/mkdir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp
index 05e7d4bd3..e07b3979f 100644
--- a/src/utils/mkdir.cpp
+++ b/src/utils/mkdir.cpp
@@ -40,7 +40,7 @@
#include "debug.h"
#if defined WIN32
-int mkdir_r(const char *pathname)
+int mkdir_r(const char *const pathname)
{
char tmp[PATH_MAX];
char tmp2[PATH_MAX];
@@ -111,7 +111,7 @@ int mkdir_r(const char *pathname)
}
#else
/// Create a directory, making leading components first if necessary
-int mkdir_r(const char *pathname)
+int mkdir_r(const char *const pathname)
{
size_t len = static_cast<int>(strlen(pathname));
char *tmp = new char[len + 2];