]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-shared: fix return type of cgit_self_link
authorJohn Keeping <john@keeping.me.uk>
Wed, 6 Mar 2013 20:51:54 +0000 (20:51 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Mar 2013 19:21:17 +0000 (20:21 +0100)
cgit_self_link() is a void function but implements each case it handles
by doing "return <another_void_function>" 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 <john@keeping.me.uk>

No differences found