]> gitweb.ps.run Git - ps-cgit/commit
ui-summary.c: Move urls variable into print_urls()
authorLukas Fleischer <cgit@cryptocrack.de>
Tue, 5 Mar 2013 15:48:27 +0000 (16:48 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Mar 2013 20:08:32 +0000 (21:08 +0100)
commit977a3ad7bf212e6ec7f43c16763321061ee64a69
tree49b80b6cac3e0d66e7ff73ef45d42f66ac8c5859
parentef8a97d9c6983e4fc3710bdbe771edd4e3550dba
ui-summary.c: Move urls variable into print_urls()

There's no need for this variable to be global. Printing the header in
print_urls() instead of print_url() allows for moving this variable into
print_urls() without having to pass any status to print_url().

Note that this only works as long as we don't call print_urls() more
than once.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
ui-summary.c