env_universal_common: use uid_t in geteuid checks

The u_int typedef fails to compile on all platforms (e.g. Windows). It
is part of the code imported from tmux.

Update it to the SUS-standard uid_t.

Closes #2821.
This commit is contained in:
David Adam 2016-03-18 11:45:48 +08:00 committed by Kurtis Rader
parent f20e8420a8
commit 03460a3928

View file

@ -129,7 +129,7 @@ static int check_runtime_path(const char * path)
*/ */
struct stat statpath; struct stat statpath;
u_int uid = geteuid(); uid_t uid = geteuid();
if (mkdir(path, S_IRWXU) != 0 && errno != EEXIST) if (mkdir(path, S_IRWXU) != 0 && errno != EEXIST)
return errno; return errno;