diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-06-25 20:44:25 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-06-25 20:44:25 +0000 |
commit | d4d36b0a9a778caec77fb8e4ce5b1e406d5a8f50 (patch) | |
tree | e93591472f0a6531631143da80ec9400f7fa09ab /src/target/arm_disassembler.c | |
parent | db0264db2af7c86959aeb821504c9dcd72134425 (diff) | |
download | riscv-openocd-d4d36b0a9a778caec77fb8e4ce5b1e406d5a8f50.zip riscv-openocd-d4d36b0a9a778caec77fb8e4ce5b1e406d5a8f50.tar.gz riscv-openocd-d4d36b0a9a778caec77fb8e4ce5b1e406d5a8f50.tar.bz2 |
- changed use of bzero (deprecated) to memset (thanks to Spen for pointing this out)
- changed fallback implementation of strndup to something that works on all systems (thanks to Spen for this patch)
git-svn-id: svn://svn.berlios.de/openocd/trunk@75 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm_disassembler.c')
-rw-r--r-- | src/target/arm_disassembler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm_disassembler.c b/src/target/arm_disassembler.c index 04dcf4b..3a9c1f8 100644 --- a/src/target/arm_disassembler.c +++ b/src/target/arm_disassembler.c @@ -21,7 +21,7 @@ #include "log.h" -#include <strings.h> +#include <string.h> /* textual represenation of the condition field */ /* ALways (default) is ommitted (empty string) */ @@ -1158,7 +1158,7 @@ int evaluate_data_proc(u32 opcode, u32 address, arm_instruction_t *instruction) int evaluate_opcode(u32 opcode, u32 address, arm_instruction_t *instruction) { /* clear fields, to avoid confusion */ - bzero(instruction, sizeof(arm_instruction_t)); + memset(instruction, 0, sizeof(arm_instruction_t)); instruction->opcode = opcode; /* catch opcodes with condition field [31:28] = b1111 */ |