Constify.

This commit is contained in:
Michael Drake 2012-10-06 00:20:26 +01:00
parent 120798b933
commit 192b2285f5
2 changed files with 3 additions and 2 deletions

View File

@ -177,7 +177,8 @@ bool dirlist_generate_title(const char *title, char *buffer, int buffer_length)
* dirlist_generate_bottom()
*/
bool dirlist_generate_parent_link(char *parent, char *buffer, int buffer_length)
bool dirlist_generate_parent_link(const char *parent, char *buffer,
int buffer_length)
{
int error = snprintf(buffer, buffer_length,
"<p><a href=\"%s\">%s</a></p>",

View File

@ -36,7 +36,7 @@
bool dirlist_generate_top(char *buffer, int buffer_length);
bool dirlist_generate_hide_columns(int flags, char *buffer, int buffer_length);
bool dirlist_generate_title(const char *title, char *buffer, int buffer_length);
bool dirlist_generate_parent_link(char *parent, char *buffer,
bool dirlist_generate_parent_link(const char *parent, char *buffer,
int buffer_length);
bool dirlist_generate_headings(char *buffer, int buffer_length);
bool dirlist_generate_row(bool even, bool directory, char *url, char *name,