[vlc-commits] logger: Fix warning

Johan Gunnarsson git at videolan.org
Sun Jun 16 15:44:11 CEST 2019


vlc | branch: master | Johan Gunnarsson <johan.gunnarsson at gmail.com> | Sat Jun 15 12:49:31 2019 +0200| [579a83abb6c21c416f84b98001ceb697c069e61d] | committer: Rémi Denis-Courmont

logger: Fix warning

logger/journal.c: In function ‘Open’:
logger/journal.c:75:12: warning: return from incompatible pointer type [-Wincompatible-pointer-types]
     return &ops;
            ^~~~

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=579a83abb6c21c416f84b98001ceb697c069e61d
---

 modules/logger/journal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/logger/journal.c b/modules/logger/journal.c
index 83111be107..9e0f6a624e 100644
--- a/modules/logger/journal.c
+++ b/modules/logger/journal.c
@@ -66,7 +66,7 @@ static void Log(void *opaque, int type, const vlc_log_t *meta,
 
 static const struct vlc_logger_operations ops = { Log, NULL };
 
-static vlc_log_cb Open(vlc_object_t *obj, void **sysp)
+static const struct vlc_logger_operations *Open(vlc_object_t *obj, void **sysp)
 {
     if (!var_InheritBool(obj, "syslog"))
         return NULL;



More information about the vlc-commits mailing list