diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-03-16 13:10:36 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-03-16 13:10:36 -0700 |
commit | 6f39c9f0d165791e333550061805531b81a19597 (patch) | |
tree | 204924da9c5e53520ba80ebfe3478878076a1058 /extlinux | |
parent | 1038e87c4f1031955f6c0170a65108202c1d3409 (diff) | |
download | syslinux-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-x | extlinux/main.c | 4 |
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) { |