mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix some mingw build warnings
These include:
- Having a weird in_addr that can't be initialized with {0}
- Needing INVALID_HANDLE_VALUE instead of -1 for file handles.
- Having a weird dependent definition for struct stat.
- pid is signed, not unsigned.
This commit is contained in:
+4
-1
@@ -3317,7 +3317,10 @@ process_handle_new(void)
|
||||
{
|
||||
process_handle_t *out = tor_malloc_zero(sizeof(process_handle_t));
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
out->stdout_pipe = INVALID_HANDLE_VALUE;
|
||||
out->stderr_pipe = INVALID_HANDLE_VALUE;
|
||||
#else
|
||||
out->stdout_pipe = -1;
|
||||
out->stderr_pipe = -1;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user