summaryrefslogtreecommitdiff
path: root/src/tool_dirhie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_dirhie.c')
-rw-r--r--src/tool_dirhie.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c
index 2c8aba362..91cc1b60c 100644
--- a/src/tool_dirhie.c
+++ b/src/tool_dirhie.c
@@ -39,39 +39,39 @@
# endif
#endif
-static void show_dir_errno(struct GlobalConfig *global, const char *name)
+static void show_dir_errno(const char *name)
{
switch(errno) {
#ifdef EACCES
/* !checksrc! disable ERRNOVAR 1 */
case EACCES:
- errorf(global, "You do not have permission to create %s", name);
+ errorf("You do not have permission to create %s", name);
break;
#endif
#ifdef ENAMETOOLONG
case ENAMETOOLONG:
- errorf(global, "The directory name %s is too long", name);
+ errorf("The directory name %s is too long", name);
break;
#endif
#ifdef EROFS
case EROFS:
- errorf(global, "%s resides on a read-only file system", name);
+ errorf("%s resides on a read-only file system", name);
break;
#endif
#ifdef ENOSPC
case ENOSPC:
- errorf(global, "No space left on the file system that will "
+ errorf("No space left on the file system that will "
"contain the directory %s", name);
break;
#endif
#ifdef EDQUOT
case EDQUOT:
- errorf(global, "Cannot create directory %s because you "
+ errorf("Cannot create directory %s because you "
"exceeded your quota", name);
break;
#endif
default:
- errorf(global, "Error creating directory %s", name);
+ errorf("Error creating directory %s", name);
break;
}
}
@@ -90,7 +90,7 @@ static void show_dir_errno(struct GlobalConfig *global, const char *name)
#define PATH_DELIMITERS DIR_CHAR
#endif
-CURLcode create_dir_hierarchy(const char *outfile, struct GlobalConfig *global)
+CURLcode create_dir_hierarchy(const char *outfile)
{
CURLcode result = CURLE_OK;
size_t outlen = strlen(outfile);
@@ -128,7 +128,7 @@ CURLcode create_dir_hierarchy(const char *outfile, struct GlobalConfig *global)
/* !checksrc! disable ERRNOVAR 1 */
if(!skip && (mkdir(curlx_dyn_ptr(&dirbuf), (mode_t)0000750) == -1) &&
(errno != EACCES) && (errno != EEXIST)) {
- show_dir_errno(global, curlx_dyn_ptr(&dirbuf));
+ show_dir_errno(curlx_dyn_ptr(&dirbuf));
result = CURLE_WRITE_ERROR;
break; /* get out of loop */
}