FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 01-15-2010, 03:14 PM
Peter Jones
 
Default Get rid of "stage2param" in parseCmdLineFlags(); it is unused.

stage2param is set in parseCmdLineFlags, but it's not actually used for
anything. Take it out.
---
loader/loader.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 6db3d7c..928a49d 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -891,7 +891,7 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
GError *optErr = NULL;
int numExtraArgs = 0;
int i;
- char *front, *stage2param = NULL;
+ char *front;

/* we want to default to graphical and allow override with 'text' */
flags |= LOADER_FLAGS_GRAPHICAL;
@@ -1054,10 +1054,8 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
}
else if (!strncasecmp(argv[i], "repo=", 5))
loaderData->instRepo = strdup(argv[i] + 5);
- else if (!strncasecmp(argv[i], "stage2=", 7)) {
- stage2param = strdup(argv[i]+7);
+ else if (!strncasecmp(argv[i], "stage2=", 7))
setStage2LocFromCmdline(argv[i] + 7, loaderData);
- }
else if (!strncasecmp(argv[i], "hostname=", 9))
loaderData->hostname = strdup(argv[i] + 9);
else if (!strncasecmp(argv[i], "ip=", 3))
--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org