Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ignore another generated file
[simgrid.git] / tools / tesh / signal.c
index a38c914..204d52a 100644 (file)
@@ -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);
 }