Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
signals are signed ints (we were comparing unsigned ints and signed ones)
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 8 Mar 2014 17:35:15 +0000 (18:35 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 8 Mar 2014 17:35:15 +0000 (18:35 +0100)
tools/tesh/signal.c
tools/tesh/tesh.h

index a43da9b..204d52a 100644 (file)
@@ -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;
 
index cd9236d..1fc2d89 100644 (file)
@@ -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"