Skip to content

Commit

Permalink
[clang-tidy] move first member of struct to end
Browse files Browse the repository at this point in the history
Fixes excessive passing from 10 bytes to 2 on 64-bit.

Found with clang-analyzer-optin.performance.Padding

Reviewed-by: Petr Vorel <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and pevik committed Apr 13, 2020
1 parent 2ca0f7d commit f0a6348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninfod/ninfod_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ static __inline__ struct subjinfo *subjinfo_lookup(size_t code)
#define QTYPEINFO_F_RATELIMIT 0x1

struct qtypeinfo {
uint16_t qtype;
char *name;
int (*getreply)(CHECKANDFILL_ARGS);
void (*init)(INIT_ARGS);
int flags;
uint16_t qtype;
};

static struct qtypeinfo qtypeinfo_table[] = {
Expand Down

0 comments on commit f0a6348

Please sign in to comment.