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 --- flash.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 4b1cca24..3d47a165 100644 --- a/flash.h +++ b/flash.h @@ -251,9 +251,6 @@ int print(int type, const char *fmt, ...) __attribute__((format(printf, 2, 3))); #define msg_pspew(...) print(MSG_BARF, __VA_ARGS__) /* programmer debug barf */ #define msg_cspew(...) print(MSG_BARF, __VA_ARGS__) /* chip debug barf */ -/* cli_classic.c */ -int cli_classic(int argc, char *argv[]); - /* layout.c */ int read_romlayout(char *name); int find_romentry(char *name); -- cgit v1.2.3