Skip to content

Commit

Permalink
main: pack struct fhs
Browse files Browse the repository at this point in the history
```
struct fhs {
        struct le                  le;                   /*     0    32 */
        _Bool                      active;               /*    32     1 */

        /* XXX 3 bytes hole, try to pack */

        re_sock_t                  fd;                   /*    36     4 */
        int                        flags;                /*    40     4 */

        /* XXX 4 bytes hole, try to pack */

        fd_h *                     fh;                   /*    48     8 */
        void *                     arg;                  /*    56     8 */

        /* size: 64, cachelines: 1, members: 6 */
        /* sum members: 57, holes: 2, sum holes: 7 */
};
```
  • Loading branch information
sreimers committed Jan 25, 2023
1 parent 5c6fa78 commit 52e9a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ enum {
/** File descriptor handler struct */
struct fhs {
struct le le; /**< Hash/Delete entry */
bool active; /**< In-use */
re_sock_t fd; /**< File Descriptor */
int flags; /**< Polling flags (Read, Write, etc.) */
fd_h* fh; /**< Event handler */
void* arg; /**< Handler argument */
bool active; /**< In-use */
};

/** Polling loop data */
Expand Down

0 comments on commit 52e9a22

Please sign in to comment.