aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGareth McMullin2015-03-01 22:16:04 -0800
committerGareth McMullin2015-03-01 22:16:04 -0800
commit4d4813de87721528fc9a06174dd1da5c245ae2f3 (patch)
tree298266ed212f574b51d21d5b3fa18d37a4388907 /src/main.c
parent9d80641261cee52fdf1976caa41d4fd24c392c9a (diff)
Clean up includes everywhere.
All source files include general.h first and before anything else. This inlcludes platform.h and platform_support.h No header file needs to include to include any of these, but should include any others needed for it's own declarations.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 809d4bf..60db15c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,26 +22,22 @@
* protocol loop.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-
+#include "general.h"
#include "gdb_if.h"
#include "gdb_main.h"
#include "jtagtap.h"
#include "jtag_scan.h"
-
#include "target.h"
int
main(int argc, char **argv)
{
#if defined(LIBFTDI)
- assert(platform_init(argc, argv) == 0);
+ platform_init(argc, argv);
#else
(void) argc;
(void) argv;
- assert(platform_init() == 0);
+ platform_init();
#endif
PLATFORM_SET_FATAL_ERROR_RECOVERY();