diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-08-20 14:14:22 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-08-20 14:14:22 +0000 |
commit | ed117a704bec686bf0380250b33c4b0194c84ec0 (patch) | |
tree | ba86f5ee0e7e5a7ae38a836f95925ef0fdbeaae9 /flashrom.c | |
parent | eb116a6b9852d7f8830e0edf948a06b8fe368195 (diff) | |
download | flashrom-ed117a704bec686bf0380250b33c4b0194c84ec0.zip flashrom-ed117a704bec686bf0380250b33c4b0194c84ec0.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.
Corresponding to flashrom svn r1417.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1796,11 +1796,6 @@ void check_chip_supported(const struct flashchip *flash) } } -int main(int argc, char *argv[]) -{ - return cli_classic(argc, argv); -} - /* FIXME: This function signature needs to be improved once doit() has a better * function signature. */ |