treewide: try to use const char * for string literals

This commit is contained in:
Barnabás Pőcze 2023-09-16 17:47:35 +02:00
parent fc72208fa0
commit 436787d6ba
9 changed files with 20 additions and 17 deletions

View file

@ -1207,7 +1207,7 @@ static char* make_xdg_runtime_dir(void)
time_t t = time(NULL);
struct tm *tm = localtime(&t);
char *dir;
char *tmpdir = getenv("TMPDIR");
const char *tmpdir = getenv("TMPDIR");
char path[PATH_MAX];
FILE *fp;