From 861d93ff8d9dc04eb006237434baa79d7107e639 Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Wed, 18 Dec 2019 14:52:23 -0300 Subject: [PATCH] weston-log: rename a confusing parameter name in weston_compositor_add_log_scope() In the function weston_compositor_add_log_scope() we have a struct weston_log_context parameter that in the .c file is named log_ctx. In the .h, the same parameter is named compositor. This is confusing, since its type is not struct weston_compositor, but struct weston_log_context. Rename the parameter in the .h to log_ctx. Signed-off-by: Leandro Ribeiro --- include/libweston/weston-log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libweston/weston-log.h b/include/libweston/weston-log.h index 88c0d1a8..707cb69f 100644 --- a/include/libweston/weston-log.h +++ b/include/libweston/weston-log.h @@ -63,7 +63,7 @@ typedef void (*weston_log_scope_cb)(struct weston_log_subscription *sub, void *user_data); struct weston_log_scope * -weston_compositor_add_log_scope(struct weston_log_context *compositor, +weston_compositor_add_log_scope(struct weston_log_context *log_ctx, const char *name, const char *description, weston_log_scope_cb new_subscription,