Reacted on -Wextra -Wno-unused-parameter warnings of gcc for fs_local.c

This commit is contained in:
Thomas Schmitt 2011-05-21 23:13:40 +02:00
parent a37571c6c5
commit 431d31fff6

View File

@ -456,7 +456,7 @@ int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz)
/* NULL-terminate the buf */ /* NULL-terminate the buf */
ret = ISO_SUCCESS; ret = ISO_SUCCESS;
if (size >= bufsiz) { if ((size_t) size >= bufsiz) {
ret = ISO_RR_PATH_TOO_LONG; ret = ISO_RR_PATH_TOO_LONG;
size = bufsiz - 1; size = bufsiz - 1;
} }