summaryrefslogtreecommitdiff
path: root/ui-snapshot.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-04-01 17:11:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-04-08 15:43:17 +0200
commit996f86e664ab6d00a9304a42374e9c691b78ca6b (patch)
tree1f2358c286eedfb86c89ea812b0bcd45c71cd1d9 /ui-snapshot.h
parent849ecd961df9454d6f849eac34e6f501395c4f01 (diff)
downloadcgit-996f86e664ab6d00a9304a42374e9c691b78ca6b.tar.gz
cgit-996f86e664ab6d00a9304a42374e9c691b78ca6b.tar.bz2
cgit-996f86e664ab6d00a9304a42374e9c691b78ca6b.zip
Return const char * in cgit_{httpscheme, hosturl, rooturl}()
The return values of these functions are essentially constant and should never be modified. Note that this will introduce a compiler warning when we try to free the return value of any of these functions. However, given that all of these currently return statically allocated strings in some cases, they need to be refactored before this can be done anyway. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'ui-snapshot.h')
0 files changed, 0 insertions, 0 deletions
mit/ui-tree.c?id=8f208794318f83826e98168b8b430f2d9a68bcce&follow=1'>Always #include corresponding .h in .c filesJohn Keeping22-8/+20 2013-04-08cgit.mk: fix dependency handlingJohn Keeping1-0/+8 2013-04-08Makefile: re-include cgit.conf in cgit.mkJohn Keeping1-0/+2 2013-04-08Do not unnecessarily strdup() environment variablesLukas Fleischer1-15/+10 2013-04-08Maŕk cgit_environment members constLukas Fleischer2-12/+12 2013-04-08Return const char * in cgit_{httpscheme, hosturl, rooturl}()Lukas Fleischer3-9/+9 2013-04-08Update git to v1.8.2.1John Keeping4-5/+6 2013-04-07ui-blob: don't segfault when no path is givenJohn Keeping1-1/+1 2013-03-20Convert pager navigation into a unordered listLukas Fleischer3-9/+20 2013-03-20Makefile: remove CGIT-CFLAGS files in clean stageJason A. Donenfeld1-1/+1 2013-03-20ui-summary.c: Move urls variable into print_urls()Lukas Fleischer1-6/+14 2013-03-20Fix colspan valuesLukas Fleischer3-14/+28 2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80