Parcourir la source

libcompat: Offset signal string array by one

Insert an entry for signal 0 so that the rest of the signals have their
proper name instead of the previous one.
Guillem Jover il y a 18 ans
Parent
commit
1d77d346c6
2 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 5 0
      ChangeLog
  2. 1 0
      libcompat/strsignal.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-09-14  Guillem Jover  <guillem@debian.org>
+
+	* libcompat/strsignal.c (sys_siglist): Insert a NULL entry at the
+	beginning.
+
 2008-09-14  Guillem Jover  <guillem@debian.org>
 
 	* libcompat/strsignal.c (sys_siglist): Remove array size from

+ 1 - 0
libcompat/strsignal.c

@@ -29,6 +29,7 @@
 
 #ifndef HAVE_DECL_SYS_SIGLIST
 const char *const sys_siglist[] = {
+	NULL,		/* 0 */
 	"SIGHUP",	/* 1 */
 	"SIGINT",	/* 2 */
 	"SIGQUIT",	/* 3 */