From: Martin Quinson Date: Sat, 8 Mar 2014 17:35:15 +0000 (+0100) Subject: signals are signed ints (we were comparing unsigned ints and signed ones) X-Git-Tag: v3_11~237 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/abcdd6162e7e02326763aaad812b9e60a2bade68?hp=7180e3eeeaf908fa7591c59ce880b5dbed8fcc07 signals are signed ints (we were comparing unsigned ints and signed ones) --- diff --git a/tools/tesh/signal.c b/tools/tesh/signal.c index a43da9b3a7..204d52a90b 100644 --- a/tools/tesh/signal.c +++ b/tools/tesh/signal.c @@ -48,7 +48,7 @@ static const s_signal_entry_t signals[] = { }; -const char *signal_name(unsigned int got, char *expected) +const char *signal_name(int got, char *expected) { int i; diff --git a/tools/tesh/tesh.h b/tools/tesh/tesh.h index cd9236d654..1fc2d89771 100644 --- a/tools/tesh/tesh.h +++ b/tools/tesh/tesh.h @@ -17,7 +17,7 @@ /******************************************/ /* return the name of a signal, aliasing SIGBUS to SIGSEGV since segfault leads to any of them depending on the system */ -const char *signal_name(unsigned int got, char *expected); +const char *signal_name(int got, char *expected); #include "run_context.h"