]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-shared: make a char* parameter const
authorJeff Smith <whydoubt@gmail.com>
Mon, 2 Oct 2017 04:39:07 +0000 (23:39 -0500)
committerJohn Keeping <john@keeping.me.uk>
Tue, 3 Oct 2017 18:19:34 +0000 (19:19 +0100)
All cgit_xxx_link functions take const char* for the 'name' parameter,
except for cgit_commit_link, which takes a char* and subsequently
modifies the contents.  Avoiding the content changes, and making it
const char* will avoid the need to make copies of const char* strings
being passed to cgit_commit_link.

Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Reviewed-by: John Keeping <john@keeping.me.uk>

No differences found