Diff options
authorJeff Smith <whydoubt@gmail.com>
committerJohn Keeping <john@keeping.me.uk>
commit
parent
tree
download
ui-shared: make a char* parameter const
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>
-rw-r--r--ui-shared.c19
-rw-r--r--ui-shared.h2
2 files changed, 9 insertions, 12 deletions