aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-21 00:22:54 -0700
committerMattias Andrée <maandree@kth.se>2020-06-21 09:44:02 +0200
commit1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a (patch)
treea6649598ed8a4cd6ff63efa32e3be5a21448d3c2
parentBug fix: use inclusive check to test parsed long int fits in int (diff)
downloadsctrace-1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a.tar.gz
sctrace-1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a.tar.bz2
sctrace-1c7d40ca5a1be9e8f98c1350d7d39a0bccabb10a.tar.xz
Use SIGRTMIN and SIGRTMAX instead of __-prefixed versions
-rw-r--r--consts.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/consts.c b/consts.c
index 8f6e4d9..2484ced 100644
--- a/consts.c
+++ b/consts.c
@@ -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;
}