aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
commit6f39c9f0d165791e333550061805531b81a19597 (patch)
tree204924da9c5e53520ba80ebfe3478878076a1058 /extlinux
parent1038e87c4f1031955f6c0170a65108202c1d3409 (diff)
downloadsyslinux-6f39c9f0d165791e333550061805531b81a19597.tar.gz
syslinux-6f39c9f0d165791e333550061805531b81a19597.tar.xz
syslinux-6f39c9f0d165791e333550061805531b81a19597.zip
extlinux/main.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'extlinux')
-rwxr-xr-xextlinux/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extlinux/main.c b/extlinux/main.c
index 30422c2d..21369e46 100755
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -216,7 +216,7 @@ int patch_file_and_bootblock(int fd, const char *dir, int devfd)
uint64_t totalbytes, totalsectors;
int nsect;
struct boot_sector *sbs;
- char *dirpath, *subpath, *xdirpath, *xsubpath;
+ char *dirpath, *subpath, *xdirpath;
int rv;
dirpath = realpath(dir, NULL);
@@ -237,10 +237,8 @@ int patch_file_and_bootblock(int fd, const char *dir, int devfd)
if (*subpath == '/') {
if (subpath > dirpath) {
*subpath = '\0';
- xsubpath = subpath+1;
xdirpath = dirpath;
} else {
- xsubpath = subpath;
xdirpath = "/";
}
if (lstat(xdirpath, &xdst) || dirst.st_dev != xdst.st_dev) {