Make fishd base its variable files on the MAC address instead of hostname

Fixes https://github.com/fish-shell/fish-shell/issues/183
This commit is contained in:
ridiculousfish
2013-01-08 02:39:22 -08:00
parent f8e01628b2
commit 552d8f394e
8 changed files with 206 additions and 58 deletions

View File

@@ -276,7 +276,7 @@ start_conversion:
/* FreeBSD has this prototype: size_t iconv (iconv_t, const char **...)
OS X and Linux this one: size_t iconv (iconv_t, char **...)
AFAIK there's no single type that can be passed as both char ** and const char **.
So we cast the function pointer instead (!)
Hence this hack.
*/
nconv = hack_iconv(cd, &in, &in_len, &nout, &out_len);