From 9e5c99465dec212ad108879572e6509df11ac08e Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 11 Feb 2016 17:14:35 +0100 Subject: [PATCH] cli: fix compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit connections.c: In function ‘sort_connections’: connections.c:1536:3: error: ‘return’ with no value, in function returning non-void [-Werror=return-type] return; ^ Fixes: e8927c14ec3e830099e1525fa8fee4c9a7fc5032 --- clients/cli/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 44f7d8b12d..d83502d959 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -1533,7 +1533,7 @@ sort_connections (const GPtrArray *cons, NmCli *nmc, const GArray *order) NmcSortInfo compare_info; if (!cons) - return; + return NULL; compare_info.nmc = nmc; compare_info.order = order;