X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a201b7ceece70d2bc461ac48c8b746a36d07243..6d14c1b85abceee6c22915a6d8e8c4d49e8f3b03:/tools/tesh/signal.c diff --git a/tools/tesh/signal.c b/tools/tesh/signal.c index a38c91426f..204d52a90b 100644 --- a/tools/tesh/signal.c +++ b/tools/tesh/signal.c @@ -1,7 +1,7 @@ /* signal -- what TESH needs to know about signals */ -/* Copyright (c) 2007 Martin Quinson. */ -/* All rights reserved. */ +/* Copyright (c) 2007-2010, 2012-2014. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -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; @@ -61,5 +61,5 @@ const char *signal_name(unsigned int got, char *expected) if (signals[i].number == got) return (signals[i].name); - return bprintf("SIG UNKNOWN (%d)", got); + return bprintf("SIG UNKNOWN (%u)", got); }