summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-06 19:56:15 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-06 19:56:15 +0000
commit0bb7c9d10935b320ada567dc0e46f3b23eea2793 (patch)
treef94dedc462fe650fffd5bc949d20edf3f09d22cb /src/openocd.c
parent2b673d0c1e190f76b1bd2c5a7f7f1242bd1c3d18 (diff)
downloadopenocd+libswd-0bb7c9d10935b320ada567dc0e46f3b23eea2793.tar.gz
openocd+libswd-0bb7c9d10935b320ada567dc0e46f3b23eea2793.tar.bz2
openocd+libswd-0bb7c9d10935b320ada567dc0e46f3b23eea2793.tar.xz
openocd+libswd-0bb7c9d10935b320ada567dc0e46f3b23eea2793.zip
fix a few compilation problems.
git-svn-id: svn://svn.berlios.de/openocd/trunk@758 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 5439ece0..197c2e32 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -625,7 +625,12 @@ void initJim(void)
interp->cb_fgets = openocd_jim_fgets;
}
-int main(int argc, char *argv[])
+/*
+normally this is the main() function entry, but if OpenOCD is linked
+into application, then this fn will not be invoked, but rather that
+application will have it's own implementation of main().
+*/
+int openocd_main(int argc, char *argv[])
{
initJim();