summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-23 17:25:59 -0800
committerGravatar Nikias Bassen2022-04-22 13:18:51 +0200
commit1c7619d5d425816a8173c732ae47c1c2e588918b (patch)
tree2ee9949f1920168b6ace332300536bc47e96bd95 /src
parentc6ae88fa11232e198daeab808966301aea557e6c (diff)
downloadlibimobiledevice-glue-1c7619d5d425816a8173c732ae47c1c2e588918b.tar.gz
libimobiledevice-glue-1c7619d5d425816a8173c732ae47c1c2e588918b.tar.bz2
[clang-tidy] utils: Fix too small loop variable
Found with bugprone-too-small-loop-variable Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 0acbedc..8e8bf79 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -216,7 +216,7 @@ LIBIMOBILEDEVICE_GLUE_API char *string_format_size(uint64_t size)
LIBIMOBILEDEVICE_GLUE_API char *string_toupper(char* str)
{
char *res = strdup(str);
- unsigned int i;
+ size_t i;
for (i = 0; i < strlen(res); i++) {
res[i] = toupper(res[i]);
}