From 1ce76b68f15f1ff4ffb4e89bd2da68a028fe29a3 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 25 Jul 2009 10:21:38 +0000 Subject: [PATCH] small cosmetics --- src/main.c | 4 ++-- src/winmain.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 6a6ccaa1a..df2d64616 100644 --- a/src/main.c +++ b/src/main.c @@ -941,7 +941,7 @@ main(int argc, char **argv) #endif #if defined(SIGSEGV) && !defined(NGDEBUG) && defined(HAS_WINDOWS) /* Allow a comment and graceful shutdown after seg fault */ - signal(SIGSEGV, sigsegv); + signal(SIGSEGV, (SIGNAL_FUNCTION) sigsegv); #endif #ifdef SIGSYS signal(SIGSYS, (SIGNAL_FUNCTION) sig_sys); @@ -1013,7 +1013,7 @@ bot: startup time. */ FILE *tempfile; #if defined(HAS_WINDOWS) || defined(_MSC_VER) || defined(__MINGW32__) - char *tpf; /* temporary file */ + char *tpf = NULL; /* temporary file */ char *dname = NULL; /* directory of input file*/ bool has_smk = FALSE; #endif diff --git a/src/winmain.c b/src/winmain.c index a7138f611..519e36433 100644 --- a/src/winmain.c +++ b/src/winmain.c @@ -197,7 +197,6 @@ void SetSource( char * Name) // ----------------------------------------------------------- // Neuer Text ins Analysefenster -static int OldPercent = -2; void SetAnalyse( char * Analyse, int Percent) { static int OldPercent = -2;