[ScryMUD] SVN Commit Info r729 - branches/version-2-1/mud/grrmud/server

scrymud at wanfear.com scrymud at wanfear.com
Thu Dec 2 15:26:19 PST 2004


Author: eroper
Date: 2004-12-02 15:26:19 -0800 (Thu, 02 Dec 2004)
New Revision: 729

Modified:
   branches/version-2-1/mud/grrmud/server/grrmud.cc
Log:
Fixed some uglyness and kruft.


Modified: branches/version-2-1/mud/grrmud/server/grrmud.cc
===================================================================
--- branches/version-2-1/mud/grrmud/server/grrmud.cc	2004-12-02 23:20:29 UTC (rev 728)
+++ branches/version-2-1/mud/grrmud/server/grrmud.cc	2004-12-02 23:26:19 UTC (rev 729)
@@ -1377,19 +1377,7 @@
    mudlog.log(TRC, "in init_socket\n");
    memset((char*)(&sa), 0, sizeof(struct sockaddr_in ));
 
-
-
-   /*
-   if (gethostname(hostname, MAX_HOSTNAME) < 0) {
-      mudlog << "ERROR: gethostname:  " << strerror(errno) << endl;
-      //strcpy(hostname, "mogul");
-   }//if
-   */
-
-   cout << config.hostname << endl;
-   //if ( Strncompare(config.hostname, "all") == 0 ) {
    if ( config.hostname == "all" ) {
-      cout << "hostname any found" << endl;
       sa.sin_addr.s_addr = htonl(INADDR_ANY);
       sa.sin_family = AF_INET;
    } else {
@@ -1415,7 +1403,7 @@
 
    so_reuseaddr_opt = 1;
    if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR, (void *)&so_reuseaddr_opt,
-            sizeof(int))
+            sizeof(so_reuseaddr_opt))
           < 0) {
       mudlog << "ERROR:  setsockopt:  " << strerror(errno) << endl;
       do_shutdown = TRUE;




More information about the ScryMUD mailing list