diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-07-08 14:11:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-07-08 14:11:02 -0400 |
commit | 2e55fa9587ffd8e988229fe127881289d9271c32 (patch) | |
tree | fe0c2e2c7fe81c4c658a5ebb81b11f1b56f00ae5 /src/test | |
parent | 4512578e49b187075d4e8b4d07a0c921a15d5135 (diff) | |
download | tor-2e55fa9587ffd8e988229fe127881289d9271c32.tar.gz tor-2e55fa9587ffd8e988229fe127881289d9271c32.zip |
Adjust log callback type to use log_domain_mask_t
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_logging.c | 2 | ||||
-rw-r--r-- | src/test/test_options.c | 2 | ||||
-rw-r--r-- | src/test/testing_common.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_logging.c b/src/test/test_logging.c index 6416e98a4e..bb7018fe1c 100644 --- a/src/test/test_logging.c +++ b/src/test/test_logging.c @@ -15,7 +15,7 @@ #endif static void -dummy_cb_fn(int severity, uint32_t domain, const char *msg) +dummy_cb_fn(int severity, log_domain_mask_t domain, const char *msg) { (void)severity; (void)domain; (void)msg; } diff --git a/src/test/test_options.c b/src/test/test_options.c index 396be6b18d..d2f0c11218 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -38,7 +38,7 @@ typedef struct { static smartlist_t *messages = NULL; static void -log_cback(int severity, uint32_t domain, const char *msg) +log_cback(int severity, log_domain_mask_t domain, const char *msg) { logmsg_t *x = tor_malloc(sizeof(*x)); x->severity = severity; diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 1c2a2e8960..ad22898ce5 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -243,7 +243,7 @@ tinytest_postfork(void) } static void -log_callback_failure(int severity, uint32_t domain, const char *msg) +log_callback_failure(int severity, log_domain_mask_t domain, const char *msg) { (void)msg; if (severity == LOG_ERR || (domain & LD_BUG)) { |