Merge remote-tracking branch 'sebastian/bug4469'

This commit is contained in:
Nick Mathewson 2011-11-15 11:59:37 -05:00
commit 26fcb4bb8c
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.",