summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authoruwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-08-20 14:14:22 +0000
committeruwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-08-20 14:14:22 +0000
commit6b4bbe1fee48f3bf771db2bbfdc2a5fcc4084095 (patch)
treeba86f5ee0e7e5a7ae38a836f95925ef0fdbeaae9 /cli_classic.c
parent812304f78208d91b4152a908085cb0eba8f20b03 (diff)
downloadflashrom-6b4bbe1fee48f3bf771db2bbfdc2a5fcc4084095.tar.gz
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. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1417 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c2
1 files changed, 1 insertions, 1 deletions
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. */