Minor comment/whitespace cleaning
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@399 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
d15a30cf3e
commit
eb2fdc2629
|
@ -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());
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue