From: Pasi Kallinen Date: Tue, 1 Jan 2008 20:57:50 +0000 (+0000) Subject: Minor comment/whitespace cleaning X-Git-Tag: v1.6.1-roc-dev~309 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=eb2fdc262981923dfdaf8658e5735842c60dc8b2;p=dgamelaunch Minor comment/whitespace cleaning git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@399 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index 9e44d88..274f13f 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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()); diff --git a/dgamelaunch.h b/dgamelaunch.h index 62525e7..99b2d8f 100644 --- a/dgamelaunch.h +++ b/dgamelaunch.h @@ -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 */ diff --git a/dgl-common.c b/dgl-common.c index 7e30492..68e44ef 100644 --- a/dgl-common.c +++ b/dgl-common.c @@ -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;