aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'pseudo_util.c')
-rw-r--r--pseudo_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pseudo_util.c b/pseudo_util.c
index dcd571f..a57f8ac 100644
--- a/pseudo_util.c
+++ b/pseudo_util.c
@@ -457,7 +457,7 @@ pseudo_prefix_path(char *file) {
rc = snprintf(path, len, "%s", prefix);
/* this certainly SHOULD be impossible */
- if (rc >= len)
+ if ((size_t) rc >= len)
rc = len - 1;
endptr = path + rc;
/* strip extra slashes.
@@ -494,7 +494,7 @@ pseudo_get_prefix(char *pathname) {
}
tmp_path = pseudo_fix_path(NULL, mypath, 0, 0, 0, AT_SYMLINK_NOFOLLOW);
/* point s to the end of the fixed path */
- if (strlen(tmp_path) >= pseudo_path_max()) {
+ if ((int) strlen(tmp_path) >= pseudo_path_max()) {
pseudo_diag("Can't expand path '%s' -- expansion exceeds %d.\n",
mypath, (int) pseudo_path_max());
free(tmp_path);