diff options
author | Marcus Brinkmann <mb@g10code.com> | 2005-10-08 01:46:36 +0200 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2005-10-08 01:46:36 +0200 |
commit | 84b22283d919c828d91c4bad448231f6973f675a (patch) | |
tree | 5e923a5c79ff7961a786fa9a64946f8b835465df /common | |
parent | 2005-10-07 Marcus Brinkmann <marcus@g10code.de> (diff) | |
download | gnupg2-84b22283d919c828d91c4bad448231f6973f675a.tar.xz gnupg2-84b22283d919c828d91c4bad448231f6973f675a.zip |
2005-10-08 Marcus Brinkmann <marcus@g10code.de>
* signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST
instead of just if it is defined.
Diffstat (limited to 'common')
-rw-r--r-- | common/ChangeLog | 5 | ||||
-rw-r--r-- | common/signal.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index d058d6cd9..4a184006a 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,8 @@ +2005-10-08 Marcus Brinkmann <marcus@g10code.de> + + * signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST + instead of just if it is defined. + 2005-09-28 Marcus Brinkmann <marcus@g10code.de> * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS). diff --git a/common/signal.c b/common/signal.c index f0d3df75e..2837d7b72 100644 --- a/common/signal.c +++ b/common/signal.c @@ -76,7 +76,7 @@ get_signal_name( int signum ) { /* Note that we can't use strsignal(), because it is not reentrant. */ -#if defined(HAVE_DECL_SYS_SIGLIST) && defined(NSIG) +#if HAVE_DECL_SYS_SIGLIST && defined(NSIG) return (signum >= 0 && signum < NSIG) ? sys_siglist[signum] : "?"; #else return NULL; |