Skip to content

Commit 3e5a0ec

Browse files
committed
Make sure that C structs are packed better to avoid unnecessary padding
Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent da5d78c commit 3e5a0ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ extern "C" {
2020
} while(0)
2121

2222
typedef struct file_data {
23+
fpos_t position;
2324
int old_fd;
2425
int new_fd;
25-
fpos_t position;
2626
} file_data_t;
2727

2828
typedef struct save {
29-
int status;
3029
file_data_t file;
30+
int status;
3131
} save_t;
3232

3333
extern magic_t magic_open_wrapper(int flags);

0 commit comments

Comments
 (0)