Commit 1b6e6ed10a92438da47fe99864698db9ac2169b6 v1.6
authorMichel Pollet <buserror@gmail.com>
Tue, 25 Apr 2017 07:13:47 +0000 (08:13 +0100)
committerMichel Pollet <buserror@gmail.com>
Wed, 10 Jan 2018 10:05:15 +0000 (10:05 +0000)
Going to clean this piece of code a little

Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
simavr/sim/sim_elf.c
simavr/sim/sim_elf.h

index 93eefa8af0c8d8b617e003eb7d52a8404469bc79..f2f1a154b52a4e135bd7f912ffb6503f5640a1f9 100644 (file)
@@ -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 */
index c58dcf1c534c7212824b66e5a1c29748037a3d84..174a4402789d6739657e6d891a306d17e1eb80a0 100644 (file)
@@ -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
 };