[or-cvs] char *x = "y"; is not good C.
Nick Mathewson
nickm at seul.org
Mon Feb 6 05:01:47 UTC 2006
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv4914/src/or
Modified Files:
connection.c
Log Message:
char *x = "y"; is not good C.
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.436
retrieving revision 1.437
diff -u -p -d -r1.436 -r1.437
--- connection.c 4 Feb 2006 08:58:51 -0000 1.436
+++ connection.c 6 Feb 2006 05:01:44 -0000 1.437
@@ -547,7 +547,7 @@ connection_create_listener(const char *l
#endif
if (bind(s,(struct sockaddr *)&listenaddr,sizeof(listenaddr)) < 0) {
- char *helpfulhint = "";
+ const char *helpfulhint = "";
int e = tor_socket_errno(s);
if (ERRNO_IS_EADDRINUSE(e))
helpfulhint = ". Is Tor already running?";
More information about the tor-commits
mailing list