public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-17] gcov: Fix integer types in ftw_read_file()
@ 2022-04-28 19:41 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-04-28 19:41 UTC (permalink / raw)
To: gcc-cvs
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-28 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 19:41 [gcc r13-17] gcov: Fix integer types in ftw_read_file() Sebastian Huber
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).