From 394ee7832569431352d5f6f70ab345a6b4dd9fa8 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 20 Aug 2011 14:14:22 +0000 Subject: Move the main() function from flashrom.c to cli_classic.c The file flashrom.c is part of libflashrom and should thus not contain a main() function, that would break compilation of all frontends using libflashrom. Also, cli_classic.c is the right place anyway, as it's the main() of the CLI tool. Rename the simple wrapper cli_classic() in cli_classic.c to main(), as it's not really needed. Corresponding to flashrom svn r1417. Signed-off-by: Uwe Hermann Acked-by: Stefan Tauner --- cli_classic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli_classic.c') diff --git a/cli_classic.c b/cli_classic.c index 5d35738..c6fb379 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -96,7 +96,7 @@ static void cli_classic_abort_usage(void) exit(1); } -int cli_classic(int argc, char *argv[]) +int main(int argc, char *argv[]) { unsigned long size; /* Probe for up to three flash chips. */ -- cgit v1.1