summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mkdir.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp
index 4d7312285..c723e3321 100644
--- a/src/utils/mkdir.cpp
+++ b/src/utils/mkdir.cpp
@@ -52,7 +52,7 @@ int mkdir_r(const char *const pathname)
strncpy(tmp, pathname, sizeof(tmp) - 1);
tmp[PATH_MAX - 1] = '\0';
- int len = static_cast<int>(strlen(tmp));
+ const int len = static_cast<int>(strlen(tmp));
if (len < 1)
return -1;
@@ -174,7 +174,8 @@ int mkdir_r(const char *const pathname)
#ifdef M_MKDIR_TEST_
int main(int argc, char** argv)
{
- if (argc < 2) exit(1);
+ if (argc < 2)
+ exit(1);
mkdir_r(argv[1]);
}
#endif