aboutsummaryrefslogtreecommitdiffstats
path: root/tools/shmtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shmtest.c')
-rw-r--r--tools/shmtest.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/shmtest.c b/tools/shmtest.c
index 1cfb9b4ed..956dec6c5 100644
--- a/tools/shmtest.c
+++ b/tools/shmtest.c
@@ -15,6 +15,7 @@
#ifdef HAVE_SYS_SHM_H
#include <sys/shm.h>
#endif
+#include <gcrypt.h>
#include "util.h"
#include "ttyio.h"
#include "i18n.h"
@@ -36,12 +37,6 @@ my_usage(void)
exit(1);
}
-const char *
-strusage( int level )
-{
- return default_strusage(level);
-}
-
static void
i18n_init(void)
{
@@ -51,7 +46,7 @@ i18n_init(void)
#else
setlocale( LC_ALL, "" );
#endif
- bindtextdomain( PACKAGE, G10_LOCALEDIR );
+ bindtextdomain( PACKAGE, GNUPG_LOCALEDIR );
textdomain( PACKAGE );
#endif
}
@@ -77,7 +72,7 @@ do_get_string( int mode, const char *keyword, byte *area, size_t areasize )
memcpy( area+n+2, p, len );
area[n] = len >> 8;
area[n+1] = len;
- m_free(p);
+ gcry_free(p);
}
else { /* bool */
area[n] = 0;
@@ -112,7 +107,7 @@ main(int argc, char **argv)
for(n=0,i=1; i < argc; i++ )
n += strlen(argv[i]) + 1;
- p = m_alloc( 100 + n );
+ p = gcry_xmalloc( 100 + n );
strcpy( p, "../g10/gpg --status-fd 1 --run-as-shm-coprocess 0");
for(i=1; i < argc; i++ ) {
strcat(p, " " );
@@ -120,7 +115,7 @@ main(int argc, char **argv)
}
fp = popen( p, "r" );
- m_free( p );
+ gcry_free( p );
if( !fp )
log_error("popen failed: %s\n", strerror(errno));