diff options
author | Simon McVittie <smcv@collabora.com> | 2023-05-04 19:27:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 19:27:22 +0100 |
commit | d73a78f7ef0bdb5e0a9e1f332c862d68008dec04 (patch) | |
tree | 96d0e25a14a251c313821e05d827d30112ba9587 /utils.c | |
parent | 928638969e475f7a1a5aa6708add7292eb695f03 (diff) | |
parent | ab5eb5c3f5bc75ee38d66a0c4d56d8a05be54b76 (diff) | |
download | bubblewrap-d73a78f7ef0bdb5e0a9e1f332c862d68008dec04.tar.gz |
Merge pull request #559 from cgzones/compiler
Fix various compiler warnings
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |