summaryrefslogtreecommitdiff
path: root/src/plugins/logger/logger-buffer.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-07-06 21:16:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-07-08 13:29:45 +0200
commit481e8f197d1e713ed94d1603c0af272fb202a65b (patch)
tree4b349348e4aa86a85b21202d1550c7f0d059bc1e /src/plugins/logger/logger-buffer.c
parent66cb9f6ea2e534887e73c885d3f131710c48382d (diff)
downloadweechat-481e8f197d1e713ed94d1603c0af272fb202a65b.zip
core: use type "enum" in options
Diffstat (limited to 'src/plugins/logger/logger-buffer.c')
-rw-r--r--src/plugins/logger/logger-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/logger/logger-buffer.c b/src/plugins/logger/logger-buffer.c
index 67686abb7..571cd5c87 100644
--- a/src/plugins/logger/logger-buffer.c
+++ b/src/plugins/logger/logger-buffer.c
@@ -351,7 +351,7 @@ logger_buffer_compress_file (struct t_logger_buffer *logger_buffer)
const char *ptr_extension;
int compression_type, compression_level;
- compression_type = weechat_config_integer (
+ compression_type = weechat_config_enum (
logger_config_file_rotation_compression_type);
ptr_extension = logger_buffer_compression_extension[compression_type];
@@ -475,7 +475,7 @@ logger_buffer_rotate (struct t_logger_buffer *logger_buffer)
logger_buffer->log_filename);
}
- compression_type = weechat_config_integer (
+ compression_type = weechat_config_enum (
logger_config_file_rotation_compression_type);
ptr_extension = logger_buffer_compression_extension[compression_type];