summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2023-05-04 19:27:22 +0100
committerGitHub <noreply@github.com>2023-05-04 19:27:22 +0100
commitd73a78f7ef0bdb5e0a9e1f332c862d68008dec04 (patch)
tree96d0e25a14a251c313821e05d827d30112ba9587 /utils.c
parent928638969e475f7a1a5aa6708add7292eb695f03 (diff)
parentab5eb5c3f5bc75ee38d66a0c4d56d8a05be54b76 (diff)
downloadbubblewrap-d73a78f7ef0bdb5e0a9e1f332c862d68008dec04.tar.gz
Merge pull request #559 from cgzones/compiler
Fix various compiler warnings
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index b2e885f..505790b 100644
--- a/utils.c
+++ b/utils.c
@@ -666,7 +666,7 @@ ensure_dir (const char *path,
/* Sets errno on error (!= 0) */
int
mkdir_with_parents (const char *pathname,
- int mode,
+ mode_t mode,
bool create_last)
{
cleanup_free char *fn = NULL;
@@ -809,7 +809,7 @@ readlink_malloc (const char *pathname)
if (n < 0)
return NULL;
}
- while (size - 2 < n);
+ while (size - 2 < (size_t)n);
value[n] = 0;
return steal_pointer (&value);