aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-01-09 12:00:03 +0100
committerHarald Welte <laforge@osmocom.org>2022-01-09 12:04:22 +0100
commite6fb890b98e69f6b0bba4d12f2a3cf76aa20acf4 (patch)
tree29027cbbf3df6907f32abc60a34f4c60f4ed757e /src/logging.c
parent7d6166a0e3996baa60391a89a780499d9cb07783 (diff)
log_taget_find() should use enum log_target_type, not int
This has shown up in -Wsign-compare Change-Id: I2f5ba81aa0328db7db29f49f26de4cea3f522789
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.c b/src/logging.c
index 7f6dbb56..9d2a0651 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -1259,7 +1259,7 @@ struct log_target *log_target_create_file(const char *fname)
* \returns Log target (if found), NULL otherwise
* Must be called with mutex osmo_log_tgt_mutex held, see log_tgt_mutex_lock.
*/
-struct log_target *log_target_find(int type, const char *fname)
+struct log_target *log_target_find(enum log_target_type type, const char *fname)
{
struct log_target *tgt;