]> skyeroc.xyz Git - dgamelaunch/commitdiff
Minor comment/whitespace cleaning
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 20:57:50 +0000 (20:57 +0000)
committerPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 20:57:50 +0000 (20:57 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@399 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c
dgamelaunch.h
dgl-common.c

index 9e44d887c3bbfcbe52116ba2e42093e4f493d856..274f13fbc25d4d5b775b030a03f96477b4ec1db9 100644 (file)
@@ -93,7 +93,6 @@ extern int editor_main (int argc, char **argv);
 /* global variables */
 
 char * __progname;
-/*char rcfilename[80];*/
 
 #ifndef USE_SQLITE3
 int f_num = 0;
@@ -1439,7 +1438,7 @@ editoptions (int game)
   }
   else
     waitpid(editor, NULL, 0);
-    
+
   refresh ();
 }
 
@@ -1480,7 +1479,7 @@ writefile (int requirenew)
     }
 
   fl.l_type = F_UNLCK;
-  
+
   freefile ();
   readfile (1);
 
@@ -1745,9 +1744,6 @@ gamemenuloop(int game)
            break;
         case 'q':
            return 0;
-           /*          endwin ();
-                       graceful_exit(0);*/
-          /* break; */
         case 'r':
           if (!loggedin && globalconfig.allow_registration)
             newuser ();
@@ -1927,15 +1923,15 @@ main (int argc, char** argv)
            fprintf(stderr, "warning: using %s\n", argv[optind]);
          free(config);
        }
-         
+
        config = strdup(optarg);
        break;
-       
+
       default:
        break; /*ignore */
     }
   }
-  
+
   while (optind < argc)
   {
     size_t len = strlen(argv[optind]);
@@ -2106,22 +2102,6 @@ main (int argc, char** argv)
       myconfig[userchoice]->bin_args[i] = tmp;
   }
 
-  /*
-  if (myconfig[userchoice]->mkdir) {
-      tmp = strdup(dgl_format_str(userchoice, me, myconfig[userchoice]->mkdir));
-      free(myconfig[userchoice]->mkdir);
-      myconfig[userchoice]->mkdir = tmp;
-  }
-  */
-
-  /*
-  if (myconfig[userchoice]->chdir) {
-      tmp = strdup(dgl_format_str(userchoice, me, myconfig[userchoice]->chdir));
-      free(myconfig[userchoice]->chdir);
-      myconfig[userchoice]->chdir = tmp;
-  }
-  */
-
   /* launch program */
   ttyrec_main (userchoice, me->username, gen_ttyrec_filename());
 
index 62525e787e68c8996640296b2e20fd11f6603ebb..99b2d8fd03c7ba1f987c24c5c717da4900a04d67 100644 (file)
@@ -69,7 +69,6 @@ struct dg_config
   char* shortname;
   char* rcfile;
   char* spool;
-    /*char* savefilefmt;*/
   char* inprogressdir;
     int num_args; /* # of bin_args */
     char **bin_args; /* args for game binary */
index 7e30492ed2323f68552c90607e19501e29026faf..68e44ef06a421bcb50cd0fa81b5d2999d7253f86 100644 (file)
@@ -45,7 +45,6 @@ struct dg_config defconfig = {
 
 char* config = NULL;
 int silent = 0;
-/*int set_max = 0;*/ /* XXX */
 int loggedin = 0;
 char *chosen_name;
 int num_games = 0;