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:
parent
d8b13d695a
commit
f55dfad8de
@ -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");
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user