Use mode_t as parameter type in mkdir_with_parents

The parameter mode only usage is it being passed to ensure_dir(), which
takes it as mode_t.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
Christian Göttsche 2023-02-28 21:22:52 +01:00
parent 88004f880a
commit fe0da5d368
2 changed files with 2 additions and 2 deletions

View File

@ -672,7 +672,7 @@ ensure_dir (const char *path,
/* Sets errno on error (!= 0) */
int
mkdir_with_parents (const char *pathname,
int mode,
mode_t mode,
bool create_last)
{
cleanup_free char *fn = NULL;

View File

@ -115,7 +115,7 @@ int ensure_dir (const char *path,
mode_t mode);
int get_file_mode (const char *pathname);
int mkdir_with_parents (const char *pathname,
int mode,
mode_t mode,
bool create_last);
void create_pid_socketpair (int sockets[2]);
void send_pid_on_socket (int socket);