Skip to content

Commit

Permalink
Remove debugging, GPL references
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Feb 22, 2015
1 parent b450052 commit b5f409d
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions res_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,26 +880,17 @@ static int set_arg(int *i, char *optarg) {
}

int main(int argc, char **argv) {
printf("%s\n", __LINE__);
int rv = 0;
printf("%s\n", __LINE__);
int mode_no = -1;

printf("%s\n", __LINE__);
#ifdef _DEBUG_ALLOC
printf("%s\n", __LINE__);
InitAllocCheck();
printf("%s\n", __LINE__);
#endif
printf("%s\n", __LINE__);
progname = basename(argv[0]);
printf("%s\n", __LINE__);

int len = strlen(progname);
printf("%s\n", __LINE__);
if (len > 4 && _stricmp(progname + len - 4, ".exe") == 0)
progname[len - 4] = '\0';
printf("%s\n", __LINE__);

opterr = 0;
optind = 1;
Expand All @@ -914,9 +905,7 @@ printf("%s\n", __LINE__);

modes = get_mode_count();

printf("%s\n", __LINE__);
while (1) {
printf("%s\n", __LINE__);
int c;
int option_index = 0;

Expand Down Expand Up @@ -1072,17 +1061,8 @@ printf("%s\n", __LINE__);
break;

case 'v': // version
printf("%s\n", __LINE__);
printf("%s - Version %s - %s\n", APPNAME, APPVERSION, __DATE__);
printf("%s\n", __LINE__);
printf(APPCOPYRIGHT "\n\n");
printf("%s\n", __LINE__);

printf(
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
"GNU General Public License for more details.\n");

exit(0);
break;
Expand Down Expand Up @@ -1184,7 +1164,7 @@ printf("%s\n", __LINE__);

if (opt.width == 0 && opt.height == 0 && opt.depth == 0 && opt.refresh == 0) {
if (!query)
usage();
//usage();
break;
}

Expand Down

0 comments on commit b5f409d

Please sign in to comment.