summaryrefslogtreecommitdiff
path: root/src/bin2char.c
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-13 21:07:14 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-13 21:07:14 +0000
commit696a20fea495b589305abe6cbd4cbfeb498a33a6 (patch)
tree8da11e3b44d59fd5f4dd2abbe88196fcdd18aeda /src/bin2char.c
parent1edd0e68228fb1476e9972251f89c13e91ee44eb (diff)
downloadopenocd_libswd-696a20fea495b589305abe6cbd4cbfeb498a33a6.tar.gz
openocd_libswd-696a20fea495b589305abe6cbd4cbfeb498a33a6.tar.bz2
openocd_libswd-696a20fea495b589305abe6cbd4cbfeb498a33a6.tar.xz
openocd_libswd-696a20fea495b589305abe6cbd4cbfeb498a33a6.zip
- remove unused objcopy from configure.in
- make sure bin2char is built before openocd - add generated startup_tcl.c to clean list - pass startup_tcl directly to Jim_Eval git-svn-id: svn://svn.berlios.de/openocd/trunk@805 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/bin2char.c')
-rw-r--r--src/bin2char.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/bin2char.c b/src/bin2char.c
index 436839bb..f1c809c8 100644
--- a/src/bin2char.c
+++ b/src/bin2char.c
@@ -1,8 +1,27 @@
+/***************************************************************************
+ * Copyright (C) 2005 by Dominic Rath *
+ * Dominic.Rath@gmx.de *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
-int
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
int c;
unsigned int n;
@@ -24,7 +43,6 @@ main(int argc, char **argv)
if ((++n % 16) == 0)
fprintf(stdout, "\n");
}
- fprintf(stdout, "0 /* terminate with a nil */};\n");
- fprintf(stdout, "unsigned int %s_len = %u;\n", name, n);
+ fprintf(stdout, "0 /* terminate with a null */};\n");
return 0;
}