mirror of
https://github.com/troglobit/libite.git
synced 2026-10-19 10:59:32 +00:00
Fix #8: constify mkpath() and makepath()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
be6f276557
commit
add4d5d325
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -29,7 +29,7 @@
|
||||
* Returns:
|
||||
* POSIX OK(0) on success, otherwise -1 with @errno set.
|
||||
*/
|
||||
int mkpath(char *dir, mode_t mode)
|
||||
int mkpath(const char *dir, mode_t mode)
|
||||
{
|
||||
struct stat sb;
|
||||
|
||||
@@ -56,7 +56,7 @@ int mkpath(char *dir, mode_t mode)
|
||||
* fails allocating temporary memory. For other error codes see the
|
||||
* mkdir() syscall description.
|
||||
*/
|
||||
int makepath(char *dir)
|
||||
int makepath(const char *dir)
|
||||
{
|
||||
return mkpath(dir, 0777);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user