From 1b6e6ed10a92438da47fe99864698db9ac2169b6 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Tue, 25 Apr 2017 08:13:47 +0100 Subject: [PATCH] elf: Bit of cleanup Going to clean this piece of code a little Signed-off-by: Michel Pollet --- simavr/sim/sim_elf.c | 5 ++++- simavr/sim/sim_elf.h | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/simavr/sim/sim_elf.c b/simavr/sim/sim_elf.c index 93eefa8..f2f1a15 100644 --- a/simavr/sim/sim_elf.c +++ b/simavr/sim/sim_elf.c @@ -290,7 +290,10 @@ elf_copy_section( } -int elf_read_firmware(const char * file, elf_firmware_t * firmware) +int +elf_read_firmware( + const char * file, + elf_firmware_t * firmware) { Elf32_Ehdr elf_header; /* ELF header */ Elf *elf = NULL; /* Our Elf pointer for libelf */ diff --git a/simavr/sim/sim_elf.h b/simavr/sim/sim_elf.h index c58dcf1..174a440 100644 --- a/simavr/sim/sim_elf.h +++ b/simavr/sim/sim_elf.h @@ -82,9 +82,15 @@ typedef struct elf_firmware_t { #endif } elf_firmware_t ; -int elf_read_firmware(const char * file, elf_firmware_t * firmware); - -void avr_load_firmware(avr_t * avr, elf_firmware_t * firmware); +int +elf_read_firmware( + const char * file, + elf_firmware_t * firmware); + +void +avr_load_firmware( + avr_t * avr, + elf_firmware_t * firmware); #ifdef __cplusplus }; -- 2.39.5