Sfoglia il codice sorgente

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

svn:r5926
Nick Mathewson 19 anni fa
parent
commit
2bb4fd24de
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/or/connection.c

+ 1 - 1
src/or/connection.c

@@ -547,7 +547,7 @@ connection_create_listener(const char *listenaddress, uint16_t listenport,
 #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?";