Commit 1111ed08 1111ed084950da206aceb760bb3541be4f4d7d51 by Sergey Poznyakoff

(get_homedir): Returned value is not const.

1 parent f02c9940
...@@ -91,10 +91,10 @@ split_shortcut (const char *file, const char pfx[], char **user, char **rest) ...@@ -91,10 +91,10 @@ split_shortcut (const char *file, const char pfx[], char **user, char **rest)
91 return 0; 91 return 0;
92 } 92 }
93 93
94 static const char * 94 static char *
95 get_homedir (const char *user) 95 get_homedir (const char *user)
96 { 96 {
97 const char *homedir = NULL; 97 char *homedir = NULL;
98 struct mu_auth_data *auth = NULL; 98 struct mu_auth_data *auth = NULL;
99 99
100 if (user) 100 if (user)
...@@ -172,7 +172,7 @@ plus_expand (const char *file, char **buf) ...@@ -172,7 +172,7 @@ plus_expand (const char *file, char **buf)
172 { 172 {
173 char *user = NULL; 173 char *user = NULL;
174 char *path = NULL; 174 char *path = NULL;
175 const char *home; 175 char *home;
176 int status, len; 176 int status, len;
177 177
178 if ((status = split_shortcut (file, "+=", &user, &path))) 178 if ((status = split_shortcut (file, "+=", &user, &path)))
...@@ -218,7 +218,7 @@ tilde_expand (const char *file, char **buf) ...@@ -218,7 +218,7 @@ tilde_expand (const char *file, char **buf)
218 { 218 {
219 char *user = NULL; 219 char *user = NULL;
220 char *path = NULL; 220 char *path = NULL;
221 const char *home; 221 char *home;
222 int status; 222 int status;
223 int len; 223 int len;
224 224
......