From 5f1084dc4cf816ce13d2a556cf577fcb03a5edb8 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Sun, 17 Jul 2005 19:00:35 +0000 Subject: [PATCH] Cleaned up some compiler warnings. --- src/tuxpaint.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index aa5d78fb7..154551ce8 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -6818,6 +6818,8 @@ static void get_stamp_thumb(stamp_type *sd) memcpy(buf+len, ".dat", 5); ratio = loadinfo(buf, sd); } + else + ratio = 1.0; #ifndef NOSOUND // good time to load the sound @@ -8569,8 +8571,10 @@ static void setup(int argc, char * argv[]) #ifndef WIN32 void signal_handler(int sig) { + /* if (sig == SIGPIPE) - /* fprintf(stderr, "SIGPIPE!\n") */; + fprintf(stderr, "SIGPIPE!\n"); + */ } #endif @@ -14402,9 +14406,9 @@ static void do_print(void) /* Linux, Unix, etc. */ if (want_alt_printcommand && !fullscreen) - pcmd = altprintcommand; + pcmd = (char *) altprintcommand; else - pcmd = printcommand; + pcmd = (char *) printcommand; pi = popen(pcmd, "w");