summaryrefslogtreecommitdiffstats
path: root/g10/gpgd.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2002-06-29 15:46:34 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2002-06-29 15:46:34 +0200
commit3f51f7db3de85574dc5d6efd8b54ef78c1cd3f37 (patch)
treedac7a3780fb4edf9ca89c93800230e88ab255434 /g10/gpgd.c
parentUpdate head to match stable 1.0 (diff)
downloadgnupg2-3f51f7db3de85574dc5d6efd8b54ef78c1cd3f37.tar.xz
gnupg2-3f51f7db3de85574dc5d6efd8b54ef78c1cd3f37.zip
Update head to match stable 1.0
Diffstat (limited to 'g10/gpgd.c')
-rw-r--r--g10/gpgd.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/g10/gpgd.c b/g10/gpgd.c
index 8ca37d34a..365556604 100644
--- a/g10/gpgd.c
+++ b/g10/gpgd.c
@@ -1,5 +1,5 @@
-/* ggpd.c - The GnuPG daemon (keyserver)
- * Copyright (C) 1998 Free Software Foundation, Inc.
+/* gpd.c - The GnuPG daemon (keyserver)
+ * Copyright (C) 1998, 1999 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -112,7 +112,7 @@ build_list( const char *text, const char * (*mapf)(int), int (*chkf)(int) )
for(i=1; i < 100; i++ )
if( !chkf(i) && (s=mapf(i)) )
n += strlen(s) + 2;
- list = gcry_xmalloc( 21 + n ); *list = 0;
+ list = m_alloc( 21 + n ); *list = 0;
for(p=NULL, i=1; i < 100; i++ ) {
if( !chkf(i) && (s=mapf(i)) ) {
if( !p )
@@ -201,9 +201,9 @@ main( int argc, char **argv )
else {
log_error("option file `%s': %s\n",
configname, strerror(errno) );
- gpg_exit(1);
+ g10_exit(1);
}
- gcry_free(configname); configname = NULL;
+ m_free(configname); configname = NULL;
}
if( parse_debug && configname )
log_info("reading options from `%s'\n", configname );
@@ -216,8 +216,8 @@ main( int argc, char **argv )
case 'v': opt.verbose++; break;
case 501:
if( !configfp ) {
- gcry_free(configname);
- configname = gcry_xstrdup(pargs.r.ret_str);
+ m_free(configname);
+ configname = m_strdup(pargs.r.ret_str);
goto next_pass;
}
break;
@@ -230,12 +230,12 @@ main( int argc, char **argv )
if( configfp ) {
fclose( configfp );
configfp = NULL;
- gcry_free(configname); configname = NULL;
+ m_free(configname); configname = NULL;
goto next_pass;
}
- gcry_free( configname ); configname = NULL;
+ m_free( configname ); configname = NULL;
if( log_get_errorcount(0) )
- gpg_exit(2);
+ g10_exit(2);
fprintf(stderr, "%s %s; %s\n", strusage(11), strusage(13), strusage(14) );
fprintf(stderr, "%s\n", strusage(15) );
@@ -245,13 +245,13 @@ main( int argc, char **argv )
become_daemon();
- gpg_exit(0);
+ g10_exit(0);
return 8; /*NEVER REACHED*/
}
void
-gpg_exit( int rc )
+g10_exit( int rc )
{
secmem_term();
rc = rc? rc : log_get_errorcount(0)? 2:0;