Fix compile warnings on windows

This commit is contained in:
Sebastian Hahn 2011-11-15 13:29:32 +01:00
parent 4af82fb388
commit 4b8d2ad6f5
3 changed files with 8 additions and 0 deletions

4
changes/bug4469 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes:
- Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
on 0.2.3.4-alpha and 0.2.3.6-alpha.

View File

@ -3228,6 +3228,8 @@ tor_spawn_background(const char *const filename, const char **argv,
SECURITY_ATTRIBUTES saAttr;
char *joined_argv;
(void)envp; // Unused on Windows
/* process_handle must not be NULL */
tor_assert(process_handle != NULL);

View File

@ -996,6 +996,8 @@ connection_create_listener(const struct sockaddr *listensockaddr,
tor_close_socket(s);
goto err;
}
#else
(void)options;
#endif /* HAVE_SYS_UN_H */
} else {
log_err(LD_BUG,"Got unexpected address family %d.",