mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
char *x = "y"; is not good C.
svn:r5926
This commit is contained in:
parent
2be4f3e424
commit
2bb4fd24de
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ connection_create_listener(const char *listenaddress, uint16_t listenport,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (bind(s,(struct sockaddr *)&listenaddr,sizeof(listenaddr)) < 0) {
|
if (bind(s,(struct sockaddr *)&listenaddr,sizeof(listenaddr)) < 0) {
|
||||||
char *helpfulhint = "";
|
const char *helpfulhint = "";
|
||||||
int e = tor_socket_errno(s);
|
int e = tor_socket_errno(s);
|
||||||
if (ERRNO_IS_EADDRINUSE(e))
|
if (ERRNO_IS_EADDRINUSE(e))
|
||||||
helpfulhint = ". Is Tor already running?";
|
helpfulhint = ". Is Tor already running?";
|
||||||
|
|
Loading…
Add table
Reference in a new issue