]> granicus.if.org Git - check/commitdiff
Removed warning introduced by 2005-03-01 test timeout fix
authorhugo303 <hugo303@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 29 Mar 2005 14:25:56 +0000 (14:25 +0000)
committerhugo303 <hugo303@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 29 Mar 2005 14:25:56 +0000 (14:25 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@227 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/src/check_run.c

index 4b444cf3a4ff392331922d2ab752456a61288f24..1f3e49b1a4de271fb0acc9a30f8fad60d0645b1c 100644 (file)
@@ -449,13 +449,12 @@ static char *signal_error_msg (int signal_received, int signal_expected)
 
 static char *signal_msg (int signal)
 {
-  char *msg = emalloc (MSG_LEN); /* free'd by caller */
+  char *msg = emalloc(MSG_LEN); /* free'd by caller */
   if (alarm_received) {
-    snprintf (msg, MSG_LEN, "Test timeout expired",
-              signal, strsignal(signal));
+    snprintf(msg, MSG_LEN, "Test timeout expired");
   } else {
-    snprintf (msg, MSG_LEN, "Received signal %d (%s)",
-              signal, strsignal(signal));
+    snprintf(msg, MSG_LEN, "Received signal %d (%s)",
+             signal, strsignal(signal));
   }
   return msg;
 }