code optimization

This commit is contained in:
Markus Gans 2015-10-07 02:50:30 +02:00
parent d13dfbcb9d
commit aaf6eeecee
2 changed files with 4 additions and 4 deletions

View File

@ -709,10 +709,10 @@ void FTerm::signal_handler (int signum)
}
//----------------------------------------------------------------------
char* FTerm::init_256colorTerminal (char current_termtype[])
char* FTerm::init_256colorTerminal()
{
char local256[80] = "";
char* new_termtype = current_termtype;
char* new_termtype = 0;
char *s1, *s2, *s3, *s4, *s5, *s6;
// Enable 256 color capabilities
@ -1343,7 +1343,7 @@ void FTerm::init()
strncpy (termtype, const_cast<char*>("vt100"), 6);
// initialize 256 colors terminals
new_termtype = init_256colorTerminal (termtype);
new_termtype = init_256colorTerminal();
if ( strncmp(termtype, "cygwin", 6) == 0 )
cygwin_terminal = true;

View File

@ -242,7 +242,7 @@ class FTerm
static void init_console();
static uInt getBaudRate (const struct termios*);
static void init_consoleCharMap();
static char* init_256colorTerminal(char[]);
static char* init_256colorTerminal();
static char* parseAnswerbackMsg(char*&);
static char* parseSecDA(char*&);
static void init_termcaps();