summaryrefslogtreecommitdiff
path: root/lib/fstree
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 17:57:32 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 18:10:47 +0200
commit9723d466d51e2b9790e975224f5c6cf348921559 (patch)
tree5e16858d418f395d188f6f4706f00e4d583b75e3 /lib/fstree
parent4fdfd1f62a9d50298b0bb71e8bea04174af4a3ab (diff)
libfstree: fix signed/unsigned comparisons
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree')
-rw-r--r--lib/fstree/fstree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fstree/fstree.c b/lib/fstree/fstree.c
index 1bbb678..553809b 100644
--- a/lib/fstree/fstree.c
+++ b/lib/fstree/fstree.c
@@ -42,7 +42,7 @@ static int process_defaults(struct stat *sb, char *subopts)
lval = strtol(value, NULL, 0);
if (lval < 0)
goto fail_uv;
- if (lval > 0xFFFFFFFFL)
+ if (lval > (long)INT32_MAX)
goto fail_ov;
sb->st_uid = lval;
break;
@@ -50,7 +50,7 @@ static int process_defaults(struct stat *sb, char *subopts)
lval = strtol(value, NULL, 0);
if (lval < 0)
goto fail_uv;
- if (lval > 0xFFFFFFFFL)
+ if (lval > (long)INT32_MAX)
goto fail_ov;
sb->st_gid = lval;
break;
@@ -66,7 +66,7 @@ static int process_defaults(struct stat *sb, char *subopts)
lval = strtol(value, NULL, 0);
if (lval < 0)
goto fail_uv;
- if (lval > 0xFFFFFFFFL)
+ if (lval > (long)INT32_MAX)
goto fail_ov;
sb->st_mtime = lval;
break;