moved mch_get_user_name() and mch_get_uname() into os/users.c

This commit is contained in:
Stefan Hoffmann
2014-03-06 23:20:29 +01:00
committed by Thiago de Arruda
parent 6fd9f090fc
commit ce31410c79
7 changed files with 62 additions and 36 deletions

View File

@@ -1886,7 +1886,7 @@ int vim_chdir(char_u *new_dir)
int get_user_name(char_u *buf, int len)
{
if (username == NULL) {
if (mch_get_user_name(buf, len) == FAIL)
if (mch_get_user_name((char *)buf, len) == FAIL)
return FAIL;
username = vim_strsave(buf);
} else