public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] support: Use CHAR_MAX as maximum value
Date: Tue, 29 Mar 2022 20:29:24 +0000 (GMT) [thread overview]
Message-ID: <20220329202924.68B27385801E@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d5bb58332ba2063f09800797906ce9062d2eda00
commit d5bb58332ba2063f09800797906ce9062d2eda00
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 18:01:57 2022 -0300
support: Use CHAR_MAX as maximum value
Diff:
---
support/support_process_state.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/support/support_process_state.c b/support/support_process_state.c
index ca86dc11e6..ab02ce9ee1 100644
--- a/support/support_process_state.c
+++ b/support/support_process_state.c
@@ -59,7 +59,7 @@ support_process_state_wait (pid_t pid, enum support_process_state state)
for (;;)
{
- char cur_state = -1;
+ char cur_state = CHAR_MAX;
while (xgetline (&line, &linesiz, fstatus) > 0)
if (strncmp (line, "State:", strlen ("State:")) == 0)
{
@@ -67,7 +67,7 @@ support_process_state_wait (pid_t pid, enum support_process_state state)
break;
}
/* Fallback to nanosleep for invalid state. */
- if (cur_state == -1)
+ if (cur_state == CHAR_MAX)
break;
for (size_t i = 0; i < array_length (process_states); ++i)
next reply other threads:[~2022-03-29 20:29 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-29 20:29 Adhemerval Zanella [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-17 19:13 Adhemerval Zanella
2025-04-10 18:13 Adhemerval Zanella
2025-03-25 20:22 Adhemerval Zanella
2024-04-17 20:07 Adhemerval Zanella
2024-04-02 15:53 Adhemerval Zanella
2024-02-09 17:31 Adhemerval Zanella
2024-02-07 14:06 Adhemerval Zanella
2024-01-29 17:56 Adhemerval Zanella
2023-12-21 18:53 Adhemerval Zanella
2023-09-28 17:51 Adhemerval Zanella
2023-08-30 12:36 Adhemerval Zanella
2023-02-09 19:48 Adhemerval Zanella
2022-10-28 17:41 Adhemerval Zanella
2022-10-04 12:59 Adhemerval Zanella
2022-06-09 21:19 Adhemerval Zanella
2022-06-09 13:16 Adhemerval Zanella
2022-06-03 14:05 Adhemerval Zanella
2022-05-13 14:19 Adhemerval Zanella
2022-05-12 19:33 Adhemerval Zanella
2022-05-10 18:23 Adhemerval Zanella
2022-04-29 14:03 Adhemerval Zanella
2022-04-04 12:53 Adhemerval Zanella
2022-03-31 19:06 Adhemerval Zanella
2022-03-16 18:03 Adhemerval Zanella
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220329202924.68B27385801E@sourceware.org \
--to=azanella@sourceware.org \
--cc=glibc-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).