[git] GnuPG - branch, master, updated. gnupg-2.1.9-5-g93e8555
by Neal H. Walfield
cvs at cvs.gnupg.org
Fri Oct 16 16:44:20 CEST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 93e855553eba03f5c31682e0aaf39f18f29860b7 (commit)
from 3de5ef759895837fe499cff7fb1fa7798e6d5754 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 93e855553eba03f5c31682e0aaf39f18f29860b7
Author: Neal H. Walfield <neal at g10code.com>
Date: Fri Oct 16 16:30:46 2015 +0200
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 at g10code.com>.
diff --git a/common/mkdir_p.c b/common/mkdir_p.c
index 42469f8..43f9e02 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);
diff --git a/common/mkdir_p.h b/common/mkdir_p.h
index 0a6cf3d..28f38d1 100644
--- a/common/mkdir_p.h
+++ b/common/mkdir_p.h
@@ -39,7 +39,7 @@
first try to create the directory "foo/bar" and then the directory
"foo/bar/xyzzy". On success returns 0, otherwise an error code is
returned. */
-gpg_error_t mkdir_p (char *directory_component, ...) GPGRT_ATTR_SENTINEL(0);
+gpg_error_t gnupg_mkdir_p (const char *directory_component, ...) GPGRT_ATTR_SENTINEL(0);
/* Like mkdir_p, but DIRECTORY_COMPONENTS is a NULL terminated
array, e.g.:
@@ -47,6 +47,6 @@ gpg_error_t mkdir_p (char *directory_component, ...) GPGRT_ATTR_SENTINEL(0);
char **dirs = { "foo", "bar", NULL };
amkdir_p (dirs);
*/
-gpg_error_t amkdir_p (char **directory_components);
+gpg_error_t gnupg_amkdir_p (const char **directory_components);
#endif
-----------------------------------------------------------------------
Summary of changes:
common/mkdir_p.c | 6 +++---
common/mkdir_p.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list