diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-25 00:12:40 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-25 00:12:40 +0000 |
commit | 8adda07ed14b560a43250f1cb967f93f04d1c5de (patch) | |
tree | b490d8e1d668db283878aa19c90a00a67cbb258e /src | |
parent | 5505b8fa63193022e38c4f850598a188705991f3 (diff) | |
download | openocd_libswd-8adda07ed14b560a43250f1cb967f93f04d1c5de.tar.gz openocd_libswd-8adda07ed14b560a43250f1cb967f93f04d1c5de.tar.bz2 openocd_libswd-8adda07ed14b560a43250f1cb967f93f04d1c5de.tar.xz openocd_libswd-8adda07ed14b560a43250f1cb967f93f04d1c5de.zip |
Fixes from Oleksandr Tymoshenko "gonzo@bluezbox.com"
git-svn-id: svn://svn.berlios.de/openocd/trunk@2401 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/at91sam3.c | 1 | ||||
-rw-r--r-- | src/helper/membuf.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/at91sam3.c b/src/flash/at91sam3.c index 449bcae7..70377ad8 100644 --- a/src/flash/at91sam3.c +++ b/src/flash/at91sam3.c @@ -2385,6 +2385,7 @@ sam3_handle_gpnvm_command(struct command_context_s *cmd_ctx, char *cmd, char **a if (0 == strcmp("show", argv[0])) { if (who == -1) { showall: + r = ERROR_OK; for (x = 0 ; x < pChip->details.n_gpnvms ; x++) { r = FLASHD_GetGPNVM(&(pChip->details.bank[0]), x, &v); if (r != ERROR_OK) { diff --git a/src/helper/membuf.c b/src/helper/membuf.c index 4e25d81a..160d0bd7 100644 --- a/src/helper/membuf.c +++ b/src/helper/membuf.c @@ -20,7 +20,7 @@ #include <stdio.h> #include <stdarg.h> -#include <malloc.h> +#include <stdlib.h> #include <string.h> #include "membuf.h" |