mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[mailcap] silence compiler warning about get_mailcap_path() const qualifier
it's declared "const char *path" in "struct option_init", but we're using it as char *, so cast it
This commit is contained in:
parent
d1621e7230
commit
afc5ac5deb
@ -416,7 +416,7 @@ init_mailcap_map(void)
|
||||
if (!mailcap_map) return NULL;
|
||||
|
||||
/* Try to setup mailcap_path */
|
||||
path = get_mailcap_path();
|
||||
path = (char *)get_mailcap_path();
|
||||
if (!path || !*path) path = getenv("MAILCAP");
|
||||
if (!path) path = (char *)DEFAULT_MAILCAP_PATH;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user