cleanup for pull request

This commit is contained in:
Chris Eagle
2015-08-28 00:00:09 -07:00
parent a4b87ed840
commit b31bb9638c
2 changed files with 12 additions and 6 deletions

6
uc.c
View File

@ -31,6 +31,8 @@
#include "qemu/include/hw/boards.h"
static MemoryRegion *getMemoryBlock(struct uc_struct *uc, uint64_t address);
UNICORN_EXPORT
unsigned int uc_version(unsigned int *major, unsigned int *minor)
{
@ -353,8 +355,8 @@ uc_err uc_mem_read(uch handle, uint64_t address, uint8_t *bytes, size_t size)
return UC_ERR_OK;
}
static MemoryRegion *getMemoryBlock(struct uc_struct *uc, uint64_t address);
static MemoryRegion *getMemoryBlock(struct uc_struct *uc, uint64_t address) {
static MemoryRegion *getMemoryBlock(struct uc_struct *uc, uint64_t address)
{
unsigned int i;
for(i = 0; i < uc->mapped_block_count; i++) {