remove a warning during compilation
backend_init now returns an int not a pointer.
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 86c5b2a..70d290b 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -1270,7 +1270,7 @@
if (!config.rdp_key && (!config.server_cert || !config.server_key)) {
weston_log("the RDP compositor requires keys and an optional certificate for RDP or TLS security ("
"--rdp4-key or --rdp-tls-cert/--rdp-tls-key)\n");
- return NULL;
+ return -1;
}
b = rdp_backend_create(compositor, &config, argc, argv, wconfig);