From 4f3357e3ec12ea5617846352d72b708105f2727a Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 4 Jul 2011 15:39:38 +0200 Subject: [PATCH] Reacted on warnings of -Wunused-but-set-variable --- libisofs/fs_local.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libisofs/fs_local.c b/libisofs/fs_local.c index ab768dc..e634746 100644 --- a/libisofs/fs_local.c +++ b/libisofs/fs_local.c @@ -95,13 +95,11 @@ char* lfs_get_name(IsoFileSource *src) static int lfs_lstat(IsoFileSource *src, struct stat *info) { - _LocalFsFileSource *data; char *path; if (src == NULL || info == NULL) { return ISO_NULL_POINTER; } - data = src->data; path = lfs_get_path(src); if (path == NULL) return ISO_OUT_OF_MEM; @@ -140,13 +138,11 @@ int lfs_lstat(IsoFileSource *src, struct stat *info) static int lfs_stat(IsoFileSource *src, struct stat *info) { - _LocalFsFileSource *data; char *path; if (src == NULL || info == NULL) { return ISO_NULL_POINTER; } - data = src->data; path = lfs_get_path(src); if (path == NULL) return ISO_OUT_OF_MEM; @@ -186,13 +182,11 @@ static int lfs_access(IsoFileSource *src) { int ret; - _LocalFsFileSource *data; char *path; if (src == NULL) { return ISO_NULL_POINTER; } - data = src->data; path = lfs_get_path(src); ret = iso_eaccess(path); @@ -419,7 +413,6 @@ static int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz) { int size, ret; - _LocalFsFileSource *data; char *path; if (src == NULL || buf == NULL) { @@ -430,7 +423,6 @@ int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz) return ISO_WRONG_ARG_VALUE; } - data = src->data; path = lfs_get_path(src); /*