projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd42f3
)
Reorder fields of ban_t for better packing.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 28 Dec 2017 11:50:18 +0000
(12:50 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 28 Dec 2017 12:34:26 +0000
(13:34 +0100)
src/ban.h
patch
|
blob
|
history
diff --git
a/src/ban.h
b/src/ban.h
index 3390b83cf2ac58386fb759d3e67edaca03dbc9b2..a8e6532fcadf298b8939814aeb6d73db586c861f 100644
(file)
--- a/
src/ban.h
+++ b/
src/ban.h
@@
-37,14
+37,14
@@
#include "timer.h"
typedef struct {
-
uint8_t hash[20]
;
+
struct dlist node
;
struct sockaddr_storage address;
- uint32_t mask;
char *reason;
char *name;
time_t time;
uint32_t duration;
- struct dlist node;
+ uint32_t mask;
+ uint8_t hash[20];
} ban_t;
void Ban_UserBan(client_t *client, char *reason);