diff options
author | Michael Forney <mforney@mforney.org> | 2020-06-21 00:22:54 -0700 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-21 09:44:02 +0200 |
commit | 1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a (patch) | |
tree | a6649598ed8a4cd6ff63efa32e3be5a21448d3c2 | |
parent | Bug fix: use inclusive check to test parsed long int fits in int (diff) | |
download | sctrace-1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a.tar.gz sctrace-1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a.tar.bz2 sctrace-1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a.tar.xz |
Use SIGRTMIN and SIGRTMAX instead of __-prefixed versions
Diffstat (limited to '')
-rw-r--r-- | consts.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -40,17 +40,17 @@ get_signum_name(int sig) LIST_SIGNUMS(X) #undef X - if (__SIGRTMIN <= sig && sig <= __SIGRTMAX) { - above_low = sig - __SIGRTMIN; - below_high = __SIGRTMAX - sig; + if (SIGRTMIN <= sig && sig <= SIGRTMAX) { + above_low = sig - SIGRTMIN; + below_high = SIGRTMAX - sig; if (!above_low) - return "__SIGRTMIN"; + return "SIGRTMIN"; if (!below_high) - return "__SIGRTMAX"; + return "SIGRTMAX"; if (above_low <= below_high) - sprintf(buf, "__SIGRTMIN+%i", above_low); + sprintf(buf, "SIGRTMIN+%i", above_low); else - sprintf(buf, "__SIGRTMAX-%i", below_high); + sprintf(buf, "SIGRTMAX-%i", below_high); return buf; } |