Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 1038e87 commit 6f39c9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions extlinux/main.c
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down

0 comments on commit 6f39c9f

Please sign in to comment.