diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2020-10-22 22:10:26 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2020-10-22 22:10:26 +0200 |
commit | 400ed4024c2a7419ae1263c1e3a75b0bfb964b0a (patch) | |
tree | 31c40cdb1d203c35ae87689e937827814feec7f7 | |
parent | 402cb09d6a789fce4080798ebe8ac40493295900 (diff) | |
download | embedlog-400ed4024c2a7419ae1263c1e3a75b0bfb964b0a.tar.gz embedlog-400ed4024c2a7419ae1263c1e3a75b0bfb964b0a.tar.bz2 embedlog-400ed4024c2a7419ae1263c1e3a75b0bfb964b0a.zip |
include/embedlog.h.in: change frotate_number type to ushort
It makes more sense since we allow up to 65535 files to be
rotated. And we save at least 4 bytes in el struct.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r-- | include/embedlog.h.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/embedlog.h.in b/include/embedlog.h.in index 0f698eb..752f1a1 100644 --- a/include/embedlog.h.in +++ b/include/embedlog.h.in @@ -212,8 +212,8 @@ struct el unsigned int fsync_level:3; unsigned int frotate_symlink:1; unsigned int frotate_number_count:3; - unsigned int frotate_number; - unsigned int fcurrent_rotate; + unsigned short frotate_number; + unsigned short fcurrent_rotate; unsigned long frotate_size; unsigned long fsync_every; unsigned long fwritten_after_sync; |