Reacted on warnings of -Wunused-but-set-variable

This commit is contained in:
Thomas Schmitt 2011-07-04 15:39:38 +02:00
parent 9ffe91c372
commit 4f3357e3ec

View File

@ -95,13 +95,11 @@ char* lfs_get_name(IsoFileSource *src)
static static
int lfs_lstat(IsoFileSource *src, struct stat *info) int lfs_lstat(IsoFileSource *src, struct stat *info)
{ {
_LocalFsFileSource *data;
char *path; char *path;
if (src == NULL || info == NULL) { if (src == NULL || info == NULL) {
return ISO_NULL_POINTER; return ISO_NULL_POINTER;
} }
data = src->data;
path = lfs_get_path(src); path = lfs_get_path(src);
if (path == NULL) if (path == NULL)
return ISO_OUT_OF_MEM; return ISO_OUT_OF_MEM;
@ -140,13 +138,11 @@ int lfs_lstat(IsoFileSource *src, struct stat *info)
static static
int lfs_stat(IsoFileSource *src, struct stat *info) int lfs_stat(IsoFileSource *src, struct stat *info)
{ {
_LocalFsFileSource *data;
char *path; char *path;
if (src == NULL || info == NULL) { if (src == NULL || info == NULL) {
return ISO_NULL_POINTER; return ISO_NULL_POINTER;
} }
data = src->data;
path = lfs_get_path(src); path = lfs_get_path(src);
if (path == NULL) if (path == NULL)
return ISO_OUT_OF_MEM; return ISO_OUT_OF_MEM;
@ -186,13 +182,11 @@ static
int lfs_access(IsoFileSource *src) int lfs_access(IsoFileSource *src)
{ {
int ret; int ret;
_LocalFsFileSource *data;
char *path; char *path;
if (src == NULL) { if (src == NULL) {
return ISO_NULL_POINTER; return ISO_NULL_POINTER;
} }
data = src->data;
path = lfs_get_path(src); path = lfs_get_path(src);
ret = iso_eaccess(path); ret = iso_eaccess(path);
@ -419,7 +413,6 @@ static
int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz) int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz)
{ {
int size, ret; int size, ret;
_LocalFsFileSource *data;
char *path; char *path;
if (src == NULL || buf == NULL) { if (src == NULL || buf == NULL) {
@ -430,7 +423,6 @@ int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz)
return ISO_WRONG_ARG_VALUE; return ISO_WRONG_ARG_VALUE;
} }
data = src->data;
path = lfs_get_path(src); path = lfs_get_path(src);
/* /*