[syslinux:master] extlinux/main.c: remove variables set but not used

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 16 13:19:04 PDT 2011


Commit-ID:  6f39c9f0d165791e333550061805531b81a19597
Gitweb:     http://syslinux.zytor.com/commit/6f39c9f0d165791e333550061805531b81a19597
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700

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 at zytor.com>


---
 extlinux/main.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/extlinux/main.c b/extlinux/main.c
index 30422c2..21369e4 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) {



More information about the Syslinux-commits mailing list