1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[file] const in get_tempdir_filename

This commit is contained in:
Witold Filipczyk 2022-02-21 18:02:30 +01:00
parent d8b13d695a
commit f55dfad8de
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ get_unique_name(char *fileprefix)
}
char *
get_tempdir_filename(char *name)
get_tempdir_filename(const char *name)
{
char *tmpdir = getenv("TMPDIR");

View File

@ -48,7 +48,7 @@ char *get_unique_name(char *fileprefix);
/** Checks various environment variables to get the name of the temp dir.
* Returns a filename by concatenating "<tmpdir>/<name>". */
char *get_tempdir_filename(char *name);
char *get_tempdir_filename(const char *name);
/** Read a line from @a file into the dynamically allocated @a line,
* increasing @a line if necessary. Ending whitespace is trimmed.