1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-06-30 21:52:36 +02:00

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 <uwe@hermann-uwe.de>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Uwe Hermann
2011-08-20 14:14:22 +00:00
parent 56787086e3
commit 394ee78325
3 changed files with 1 additions and 9 deletions

View File

@ -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. */