aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_util.c
diff options
context:
space:
mode:
authorPeter Seebach <seebs@eee12.(none)>2010-03-26 13:32:57 -0500
committerPeter Seebach <seebs@eee12.(none)>2010-03-26 13:32:57 -0500
commitcaeebc0dd6ff538629687b55a5ce72554a7c3f34 (patch)
tree29f25efb21e187a4689fa3112bdd67d64b96cc96 /pseudo_util.c
parent9a95df4be5704606d88b5737b352d9ebf8ad9745 (diff)
downloadpseudo-caeebc0dd6ff538629687b55a5ce72554a7c3f34.tar.gz
pseudo-caeebc0dd6ff538629687b55a5ce72554a7c3f34.tar.bz2
pseudo-caeebc0dd6ff538629687b55a5ce72554a7c3f34.zip
Updates: Enable additional warnings, fix a number of things.
None of them seem to have been genuine problems, but it's prettier now, and some were questionable.
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);