summaryrefslogtreecommitdiff
path: root/src/helper/replacements.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-12 08:35:17 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-12 08:35:17 +0000
commitf976af56a4352d0406b930528beec105df13cacb (patch)
tree5d0f865332cdc9ec4e6db5d26f3f9faf56f0926c /src/helper/replacements.c
parent513627092034136d9d7516b41d8ef3c8881d1950 (diff)
downloadopenocd+libswd-f976af56a4352d0406b930528beec105df13cacb.tar.gz
openocd+libswd-f976af56a4352d0406b930528beec105df13cacb.tar.bz2
openocd+libswd-f976af56a4352d0406b930528beec105df13cacb.tar.xz
openocd+libswd-f976af56a4352d0406b930528beec105df13cacb.zip
Audit and remove redundant uses of replacements.h in the tree.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1761 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/replacements.c')
-rw-r--r--src/helper/replacements.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/helper/replacements.c b/src/helper/replacements.c
index cc0c242a..6b367fa8 100644
--- a/src/helper/replacements.c
+++ b/src/helper/replacements.c
@@ -23,17 +23,10 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
/* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
/*
* clear_malloc
*
@@ -65,9 +58,12 @@ void *fill_malloc(size_t size)
}
#define IN_REPLACEMENTS_C
-#include "replacements.h"
-
-#include <stdio.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#ifdef _WIN32
#include <io.h>