The following commit has been merged in the master branch:
commit 1d77d346c6617364aa8edf0d6df0d562fd961943
Author: Guillem Jover <[EMAIL PROTECTED]>
Date:   Sat Sep 13 20:20:16 2008 +0300

    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.

diff --git a/ChangeLog b/ChangeLog
index ab8e0ca..9006d31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-09-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+       * libcompat/strsignal.c (sys_siglist): Insert a NULL entry at the
+       beginning.
+
+2008-09-14  Guillem Jover  <[EMAIL PROTECTED]>
+
        * libcompat/strsignal.c (sys_siglist): Remove array size from
        declaration. Remove unknown signal names.
        (strsignal): Use sizeof to compute the array size instead of NSIG.
diff --git a/libcompat/strsignal.c b/libcompat/strsignal.c
index 79a5750..437fb8c 100644
--- a/libcompat/strsignal.c
+++ b/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 */

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to