public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Sebastian Huber <sh@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-17] gcov: Fix integer types in ftw_read_file() Date: Thu, 28 Apr 2022 19:41:54 +0000 (GMT) [thread overview] Message-ID: <20220428194154.0D22F3857806@sourceware.org> (raw) https://gcc.gnu.org/g:1ff8d194cbc6354d3c52d5362d22cc1f56b73ef7 commit r13-17-g1ff8d194cbc6354d3c52d5362d22cc1f56b73ef7 Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Wed Mar 30 22:05:12 2022 +0200 gcov: Fix integer types in ftw_read_file() libgcc/ * libgcov-util.c (ftw_read_file): Use size_t for strlen() variables. Diff: --- libgcc/libgcov-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgcc/libgcov-util.c b/libgcc/libgcov-util.c index 6093a74531d..bf96f508db0 100644 --- a/libgcc/libgcov-util.c +++ b/libgcc/libgcov-util.c @@ -384,8 +384,8 @@ ftw_read_file (const char *filename, const struct stat *status ATTRIBUTE_UNUSED, int type) { - int filename_len; - int suffix_len; + size_t filename_len; + size_t suffix_len; /* Only read regular files. */ if (type != FTW_F)
reply other threads:[~2022-04-28 19:41 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220428194154.0D22F3857806@sourceware.org \ --to=sh@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.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: linkBe 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).