openocd.c: review scope of symbols
[fw/openocd] / src / main.c
index c2b53da6e3dc7ae203e36a7d9f954b62e9468bf2..a71977daf9041e896599c5a1050c2525328414f3 100644 (file)
@@ -22,6 +22,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include "openocd.h"
 
 /* This is the main entry for developer PC hosted OpenOCD.
  *
@@ -32,8 +33,6 @@
  * Those applications will have their own main() implementation
  * and use bits and pieces from openocd.c. */
 
-extern int openocd_main(int argc, char *argv[]);
-
 int main(int argc, char *argv[])
 {
        return openocd_main(argc, argv);