Commit 863fe2ec authored by Bodo Möller's avatar Bodo Möller
Browse files

cleaning up a little

parent 3a6a39c3
Loading
Loading
Loading
Loading
+3 −4
Changes for Configure: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -937,12 +937,11 @@ sub dofile
		{
		grep(/$k/ && ($_=sprintf($m{$k}."\n",$p)),@a);
		}
	($ff=$f) =~ s/\..*$//;
	open(OUT,">$ff.new") || die "unable to open $f:$!\n";
	open(OUT,">$f.new") || die "unable to open $f.new:$!\n";
	print OUT @a;
	close(OUT);
	rename($f,"$ff.bak") || die "unable to rename $f\n" if -e $f;
	rename("$ff.new",$f) || die "unable to rename $ff.new\n";
	rename($f,"$f.bak") || die "unable to rename $f\n" if -e $f;
	rename("$f.new",$f) || die "unable to rename $f.new\n";
	}

sub print_table_entry
−131

File deleted.

−34
Changes for apps/openssl.c: 0 added lines, 34 removed lines.
Original line number Diff line number Diff line
@@ -56,10 +56,6 @@
 * [including the GNU Public Licence.]
 */

#ifndef DEBUG
#undef DEBUG
#endif

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -77,12 +73,6 @@
#include "s_apps.h"
#include <openssl/err.h>

/*
#ifdef WINDOWS
#include "bss_file.c"
#endif
*/

static unsigned long MS_CALLBACK hash(FUNCTION *a);
static int MS_CALLBACK cmp(FUNCTION *a,FUNCTION *b);
static LHASH *prog_init(void );
@@ -90,15 +80,6 @@ static int do_cmd(LHASH *prog,int argc,char *argv[]);
LHASH *config=NULL;
char *default_config_file=NULL;

#ifdef DEBUG
static void sig_stop(int i)
	{
	char *a=NULL;

	*a='\0';
	}
#endif

/* Make sure there is only one when MONOLITH is defined */
#ifdef MONOLITH
BIO *bio_err=NULL;
@@ -120,15 +101,6 @@ int main(int Argc, char *Argv[])
	arg.data=NULL;
	arg.count=0;

#if defined(DEBUG) && !defined(WINDOWS) && !defined(MSDOS)
#ifdef SIGBUS
	signal(SIGBUS,sig_stop);
#endif
#ifdef SIGSEGV
	signal(SIGSEGV,sig_stop);
#endif
#endif

	CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);

	apps_startup();
@@ -235,12 +207,6 @@ end:
	EVP_cleanup();
	ERR_free_strings();

#ifdef LEVITTE_DEBUG
	CRYPTO_push_info("Just to make sure I get a memory leak I can see :-)");
	(void)Malloc(1024);
	CRYPTO_pop_info();
#endif

	CRYPTO_mem_leaks(bio_err);
	if (bio_err != NULL)
		{
−15

File deleted.

−50

File deleted.

Loading