char *x = "y"; is not good C.

svn:r5926
This commit is contained in:
Nick Mathewson 2006-02-06 05:01:44 +00:00
parent 2be4f3e424
commit 2bb4fd24de

View file

@ -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?";