Skip to content

Commit 8bdd3ac

Browse files
committed
Cleanup
1 parent 9b73154 commit 8bdd3ac

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

include/deemon/dec.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ typedef struct ATTR_PACKED dec_rrel Dec_RRel;
194194
typedef struct ATTR_PACKED dec_rrela Dec_RRela;
195195

196196
typedef struct ATTR_PACKED {
197-
uint8_t e_ident[DI_NIDENT]; /* Identification bytes. (See `DI_*') */
198-
uint8_t e_mach; /* Machine identification (`Dee_DEC_MACH') */
199-
uint8_t e_type; /* EHDR type (one of `Dee_DEC_TYPE_*') */
200-
uint16_t e_version; /* DEC version number (One of `DVERSION_*'). */
197+
uint8_t e_ident[DI_NIDENT]; /* [AT(0-3)] Identification bytes. (See `DI_*') */
198+
uint8_t e_mach; /* [AT(4-4)] Machine identification (`Dee_DEC_MACH') */
199+
uint8_t e_type; /* [AT(5-5)] EHDR type (one of `Dee_DEC_TYPE_*') */
200+
uint16_t e_version; /* [AT(6-7)] DEC version number (One of `DVERSION_*') -- NOTE: __MUST__ remain at this specific offset for backwards compatibility! */
201201
Dee_dec_addr32_t e_offsetof_eof; /* [1..1] Offset to EOF of file mapping (should also equal the dec file's size) */
202202
Dee_dec_addr32_t e_offsetof_gchead; /* [0..1] Offset to first `struct gc_head_link' (tracking for these objects must begin after relocations were done) */
203203
Dee_dec_addr32_t e_offsetof_gctail; /* [0..1] Offset to last `struct gc_head_link' (links between these objects were already established via `e_offsetof_srel') */

src/deemon/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,8 @@ int main(int argc, char *argv[]) {
14261426
} else
14271427
#endif /* EXIT_SUCCESS != 0 */
14281428
{
1429-
int error;
14301429
/* Interpret the module-result as an integer and use that as exit-code. */
1431-
error = DeeObject_AsInt(user_module_result, &result);
1430+
int error = DeeObject_AsInt(user_module_result, &result);
14321431
Dee_Decref(user_module_result);
14331432
if unlikely(error)
14341433
goto err;

0 commit comments

Comments
 (0)