mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Compile without warnings on mingw.
svn:r17522
This commit is contained in:
parent
027a8cceed
commit
07c8b2be21
@ -968,6 +968,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef MS_WINDOWS
|
||||||
/** Log details of current user and group credentials. Return 0 on
|
/** Log details of current user and group credentials. Return 0 on
|
||||||
* success. Logs and return -1 on failure.
|
* success. Logs and return -1 on failure.
|
||||||
*/
|
*/
|
||||||
@ -975,7 +976,6 @@ static int
|
|||||||
log_credential_status(void)
|
log_credential_status(void)
|
||||||
{
|
{
|
||||||
#define CREDENTIAL_LOG_LEVEL LOG_INFO
|
#define CREDENTIAL_LOG_LEVEL LOG_INFO
|
||||||
#ifndef MS_WINDOWS
|
|
||||||
/* Real, effective and saved UIDs */
|
/* Real, effective and saved UIDs */
|
||||||
uid_t ruid, euid, suid;
|
uid_t ruid, euid, suid;
|
||||||
/* Read, effective and saved GIDs */
|
/* Read, effective and saved GIDs */
|
||||||
@ -1062,10 +1062,10 @@ log_credential_status(void)
|
|||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Call setuid and setgid to run as <b>user</b> and switch to their
|
/** Call setuid and setgid to run as <b>user</b> and switch to their
|
||||||
* primary group. Return 0 on success. On failure, log and return -1.
|
* primary group. Return 0 on success. On failure, log and return -1.
|
||||||
|
Loading…
Reference in New Issue
Block a user