From: John Keeping Date: Wed, 6 Mar 2013 20:51:54 +0000 (+0000) Subject: ui-shared: fix return type of cgit_self_link X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/6d8a789d61f3a682bc040f1f7f44050b1f723546?hp=6d8a789d61f3a682bc040f1f7f44050b1f723546 ui-shared: fix return type of cgit_self_link cgit_self_link() is a void function but implements each case it handles by doing "return " which is not valid C; section 6.8.6.4 of C11 says: A return statement with an expression shall not appear in a function whose return type is void. Fix this by removing the return keywords and converting the final code block into an "else". Signed-off-by: John Keeping ---