aboutsummaryrefslogtreecommitdiffstats
path: root/common/t-mbox-util.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-02-25 10:43:50 +0000
committerWerner Koch <[email protected]>2015-02-25 10:43:50 +0000
commit9913253610bac69e9503800e85696491e018e327 (patch)
tree01b9c3546907b1fa9fd24f23c0fbaa4fe2c364ff /common/t-mbox-util.c
parentgpg: Add command --print-pka-records. (diff)
downloadgnupg-9913253610bac69e9503800e85696491e018e327.tar.gz
gnupg-9913253610bac69e9503800e85696491e018e327.zip
Move new mailbox.c source file to common/.
* g10/mailbox.c: Move to ... * common/mbox-util.c: new file. * common/mbox-util.h: New. Include where needed. * g10/t-mailbox.c: Move to ... * common/t-mbox-util.c: new file. -- This will make it easier to use the code by other modules in common/.
Diffstat (limited to '')
-rw-r--r--common/t-mbox-util.c (renamed from g10/t-mailbox.c)28
1 files changed, 2 insertions, 26 deletions
diff --git a/g10/t-mailbox.c b/common/t-mbox-util.c
index aa7cf3399..dfa4ada2a 100644
--- a/g10/t-mailbox.c
+++ b/common/t-mbox-util.c
@@ -1,4 +1,4 @@
-/* t-mailbox.c - Module test for mailbox.c
+/* t-mbox-util.c - Module test for mbox-util.c
* Copyright (C) 2015 Werner Koch
*
* This file is part of GnuPG.
@@ -22,9 +22,8 @@
#include <stdlib.h>
#include <string.h>
-#include "gpg.h"
#include "util.h"
-#include "main.h"
+#include "mbox-util.h"
#define pass() do { ; } while(0)
#define fail(a) do { fprintf (stderr, "%s:%d: test %d failed\n",\
@@ -33,29 +32,6 @@
} while(0)
-void *
-gcry_malloc (size_t n)
-{
- return malloc (n);
-}
-
-
-char *
-gcry_strdup (const char *string)
-{
- return strdup (string);
-}
-
-
-void
-gcry_free (void *a)
-{
- if (a)
- free (a);
-}
-
-
-
static void
run_test (void)
{