pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive/files/libarchive_fe Make signo st...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/412f53c4f1e5
branches:  trunk
changeset: 349002:412f53c4f1e5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jun 22 13:01:14 2016 +0000

description:
Make signo static again to reduce diff against upstream.

diffstat:

 archivers/libarchive/files/libarchive_fe/passphrase.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 0e4f46d512e6 -r 412f53c4f1e5 archivers/libarchive/files/libarchive_fe/passphrase.c
--- a/archivers/libarchive/files/libarchive_fe/passphrase.c     Wed Jun 22 12:04:03 2016 +0000
+++ b/archivers/libarchive/files/libarchive_fe/passphrase.c     Wed Jun 22 13:01:14 2016 +0000
@@ -153,7 +153,7 @@
                     M(M(SIGQUIT, SIGTERM), \
                       M(M(SIGTSTP, SIGTTIN), SIGTTOU)))
 
-static volatile sig_atomic_t *signo;
+static volatile sig_atomic_t signo[MAX_SIGNO + 1];
 
 static void
 handler(int s)
@@ -178,10 +178,6 @@
                return(NULL);
        }
 
-       if (signo == NULL) {
-               signo = calloc(MAX_SIGNO + 1, sizeof(sig_atomic_t));
-       }
-
 restart:
        for (i = 0; i <= MAX_SIGNO; i++)
                signo[i] = 0;



Home | Main Index | Thread Index | Old Index