diff options
author | Werner Koch <wk@gnupg.org> | 2016-02-11 13:32:30 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-02-13 17:06:39 +0100 |
commit | 82d12156ef5f948d44934ed44d79d24cc9e94366 (patch) | |
tree | 6c80069d24889dab4be95d7b11445bfa3d738bf4 /g13 | |
parent | g13: Add functions to handle uint in a keyblob. (diff) | |
download | gnupg2-82d12156ef5f948d44934ed44d79d24cc9e94366.tar.xz gnupg2-82d12156ef5f948d44934ed44d79d24cc9e94366.zip |
g13: Rename utils.c to g13tuple.c
* g13/utils.c: Rename to g13tuple.c.
* g13/utils.h: Rename to g13tuple.h. Change all users.
* g13/Makefile.am: Adjust accordingly
--
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g13')
-rw-r--r-- | g13/Makefile.am | 10 | ||||
-rw-r--r-- | g13/backend.h | 2 | ||||
-rw-r--r-- | g13/call-syshelp.c | 6 | ||||
-rw-r--r-- | g13/create.c | 2 | ||||
-rw-r--r-- | g13/g13tuple.c (renamed from g13/utils.c) | 4 | ||||
-rw-r--r-- | g13/g13tuple.h (renamed from g13/utils.h) | 8 | ||||
-rw-r--r-- | g13/mount.c | 2 | ||||
-rw-r--r-- | g13/mountinfo.c | 2 | ||||
-rw-r--r-- | g13/sh-dmcrypt.c | 2 | ||||
-rw-r--r-- | g13/t-g13tuple.c (renamed from g13/t-utils.c) | 6 |
10 files changed, 24 insertions, 20 deletions
diff --git a/g13/Makefile.am b/g13/Makefile.am index 5a2ffb252..34d5baf4b 100644 --- a/g13/Makefile.am +++ b/g13/Makefile.am @@ -36,7 +36,7 @@ g13_SOURCES = \ g13.c g13.h \ g13-common.c g13-common.h \ keyblob.h \ - utils.c utils.h \ + g13tuple.c g13tuple.h \ server.c server.h \ create.c create.h \ mount.c mount.h \ @@ -56,7 +56,7 @@ g13_syshelp_SOURCES = \ g13-syshelp.c g13-syshelp.h \ g13-common.c g13-common.h \ keyblob.h \ - utils.c utils.h \ + g13tuple.c g13tuple.h \ sh-cmd.c \ sh-blockdev.c \ sh-dmcrypt.c @@ -66,12 +66,12 @@ g13_syshelp_LDADD = $(libcommon) \ $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV) -module_tests = t-utils +module_tests = t-g13tuple t_common_ldadd = $(libcommon) $(LIBGCRYPT_LIBS) \ $(LIBASSUAN_LIBS) -t_utils_SOURCES = t-utils.c utils.c -t_utils_LDADD = $(t_common_ldadd) +t_g13tuple_SOURCES = t-g13tuple.c g13tuple.c +t_g13tuple_LDADD = $(t_common_ldadd) $(PROGRAMS) : $(libcommon) $(libcommonpth) diff --git a/g13/backend.h b/g13/backend.h index be81a04d5..0f391d0ab 100644 --- a/g13/backend.h +++ b/g13/backend.h @@ -21,7 +21,7 @@ #define G13_BACKEND_H #include "../common/membuf.h" -#include "utils.h" /* For tupledesc_t */ +#include "g13tuple.h" int be_parse_conttype_name (const char *name); int be_is_supported_conttype (int conttype); diff --git a/g13/call-syshelp.c b/g13/call-syshelp.c index 545bc1ab5..0e227ab16 100644 --- a/g13/call-syshelp.c +++ b/g13/call-syshelp.c @@ -29,7 +29,11 @@ #include "g13.h" #include <assuan.h> #include "i18n.h" -#include "utils.h" +#include "g13tuple.h" +#include "keyblob.h" +#include "membuf.h" +#include "create.h" + /* Local data for this module. A pointer to this is stored in the CTRL object of each connection. */ diff --git a/g13/create.c b/g13/create.c index 3dac903df..fc2761877 100644 --- a/g13/create.c +++ b/g13/create.c @@ -32,7 +32,7 @@ #include "keyblob.h" #include "backend.h" -#include "utils.h" +#include "g13tuple.h" #include "../common/call-gpg.h" /* Create a new blob with all the session keys and other meta diff --git a/g13/utils.c b/g13/g13tuple.c index dbbaa0d8b..b90d81769 100644 --- a/g13/utils.c +++ b/g13/g13tuple.c @@ -1,4 +1,4 @@ -/* utils.c - Utility functions +/* g13tuple.c - Tuple handling * Copyright (C) 2009 Free Software Foundation, Inc. * Copyright (C) 2009, 2015, 2016 Werner Koch * @@ -26,7 +26,7 @@ #include <assert.h> #include "g13.h" -#include "utils.h" +#include "g13tuple.h" /* Definition of the tuple descriptor object. */ diff --git a/g13/utils.h b/g13/g13tuple.h index 6c3902b90..59cb6372d 100644 --- a/g13/utils.h +++ b/g13/g13tuple.h @@ -1,4 +1,4 @@ -/* utils.h - Defs for utility fucthe dispatcher to the various backends.ntions +/* g13tuple.h - Tuple handling * Copyright (C) 2009 Free Software Foundation, Inc. * * This file is part of GnuPG. @@ -17,8 +17,8 @@ * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef G13_UTILS_H -#define G13_UTILS_H +#ifndef G13_G13TUPLE_H +#define G13_G13TUPLE_H #include "../common/membuf.h" @@ -44,4 +44,4 @@ const void *next_tuple (tupledesc_t tupledesc, unsigned int *r_tag, size_t *r_length); -#endif /*G13_UTILS_H*/ +#endif /*G13_G13TUPLE_H*/ diff --git a/g13/mount.c b/g13/mount.c index e9b9c1be7..a80f28d5e 100644 --- a/g13/mount.c +++ b/g13/mount.c @@ -32,7 +32,7 @@ #include "keyblob.h" #include "backend.h" -#include "utils.h" +#include "g13tuple.h" #include "../common/sysutils.h" #include "../common/call-gpg.h" #include "mountinfo.h" diff --git a/g13/mountinfo.c b/g13/mountinfo.c index 085fb86fe..1c4894dac 100644 --- a/g13/mountinfo.c +++ b/g13/mountinfo.c @@ -31,7 +31,7 @@ #include "mountinfo.h" #include "keyblob.h" -#include "utils.h" +#include "g13tuple.h" diff --git a/g13/sh-dmcrypt.c b/g13/sh-dmcrypt.c index a9aed0cc6..20eea2350 100644 --- a/g13/sh-dmcrypt.c +++ b/g13/sh-dmcrypt.c @@ -33,7 +33,7 @@ #include "g13-syshelp.h" #include <assuan.h> #include "i18n.h" -#include "utils.h" +#include "g13tuple.h" #include "exectool.h" #include "keyblob.h" diff --git a/g13/t-utils.c b/g13/t-g13tuple.c index 5605216ec..f986efab8 100644 --- a/g13/t-utils.c +++ b/g13/t-g13tuple.c @@ -1,4 +1,4 @@ -/* t-utils.c - Module test for utils.c +/* t-g13tuple.c - Module test for g13tuple.c * Copyright (C) 2016 Werner Koch * * This file is part of GnuPG. @@ -25,9 +25,9 @@ #include "util.h" #include "keyblob.h" -#include "utils.h" +#include "g13tuple.h" -#define PGM "t-utils" +#define PGM "t-g13tuple" static int verbose; static int debug; |