diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-10-16 16:30:46 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-10-16 16:40:40 +0200 |
commit | 93e855553eba03f5c31682e0aaf39f18f29860b7 (patch) | |
tree | 7a9abab8ba04f6ca3f308f35f7d28d78469c8180 /common/mkdir_p.c | |
parent | cleanup: Fix confusion between gpg_error_t and gpg_err_code_t. (diff) | |
download | gnupg2-93e855553eba03f5c31682e0aaf39f18f29860b7.tar.xz gnupg2-93e855553eba03f5c31682e0aaf39f18f29860b7.zip |
common: Prefix the mkdir functions with gnupg_. Make args const.
* common/mkdir_p.h (mkdir_p): Rename from this...
(gnupg_mkdir_p): ... to this. Change directory_component's type from
char * to const char *.
(amkdir_p): Rename from this...
(gnupg_amkdir_p): ... to this. Change directory_component's type from
char * to const char *.
* common/mkdir_p.c (mkdir_p): Rename from this...
(gnupg_mkdir_p): ... to this. Change directory_component's type from
char * to const char *.
(amkdir_p): Rename from this...
(gnupg_amkdir_p): ... to this. Change directory_component's type from
char * to const char *.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
Diffstat (limited to 'common/mkdir_p.c')
-rw-r--r-- | common/mkdir_p.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/mkdir_p.c b/common/mkdir_p.c index 42469f8a7..43f9e024c 100644 --- a/common/mkdir_p.c +++ b/common/mkdir_p.c @@ -41,7 +41,7 @@ gpg_error_t -amkdir_p (char **directory_components) +gnupg_amkdir_p (const char **directory_components) { gpg_error_t err = 0; int count; @@ -138,7 +138,7 @@ amkdir_p (char **directory_components) gpg_error_t -mkdir_p (char *directory_component, ...) +gnupg_mkdir_p (const char *directory_component, ...) { va_list ap; gpg_error_t err = 0; @@ -174,7 +174,7 @@ mkdir_p (char *directory_component, ...) va_end (ap); if (!err) - err = amkdir_p (dirs); + err = gnupg_amkdir_p (dirs); xfree (dirs); |