From 481e8f197d1e713ed94d1603c0af272fb202a65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 6 Jul 2023 21:16:56 +0200 Subject: core: use type "enum" in options --- src/plugins/logger/logger-buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/logger/logger-buffer.c') 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]; -- cgit v1.2.3