Explorar o código

libcompat: Change strings for unknown signal and error values

Guillem Jover %!s(int64=18) %!d(string=hai) anos
pai
achega
38d5ce1076
Modificáronse 3 ficheiros con 7 adicións e 2 borrados
  1. 5 0
      ChangeLog
  2. 1 1
      libcompat/strerror.c
  3. 1 1
      libcompat/strsignal.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-09-14  Guillem Jover  <guillem@debian.org>
+
+	* libcompat/strerror.c (strerror): Change string for unknown value.
+	* libcompat/strsignal.c (strsignal): Likewise.
+
 2008-09-14  Guillem Jover  <guillem@debian.org>
 
 	* libcompat/strsignal.c (strsignal): Do not return a string for

+ 1 - 1
libcompat/strerror.c

@@ -37,7 +37,7 @@ strerror(int e)
 	if (e >= 0 && e < sys_nerr)
 		return sys_errlist[e];
 
-	sprintf(buf, _("System error no.%d"), e);
+	sprintf(buf, _("Unknown error %d"), e);
 
 	return buf;
 }

+ 1 - 1
libcompat/strsignal.c

@@ -66,7 +66,7 @@ strsignal(int s)
 	if (s > 0 && s < sizeof(sys_siglist) / sizeof(sys_siglist[0]))
 		return sys_siglist[s];
 
-	sprintf(buf, _("Signal no.%d"), s);
+	sprintf(buf, _("Unknown signal %d"), s);
 
 	return buf;
 }