Commit ea870648 authored by rswindell's avatar rswindell
Browse files

Removed some old 16-bit cruft (mswtyp and riobp).

parent 8b1ed1e0
......@@ -49,10 +49,6 @@
//---------------------------------------------------------------------------
/* Temporary */
int mswtyp=0;
uint riobp;
#define TELNET_SERVER "Synchronet Telnet Server"
#define STATUS_WFC "Listening"
......
......@@ -1955,8 +1955,6 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
#endif /* !WIN32 */
uint fakeriobp=0xffff;
const char* quoted_string(const char* str, char* buf, size_t maxlen)
{
if(strchr(str,' ')==NULL)
......@@ -2061,16 +2059,11 @@ char* sbbs_t::cmdstr(char *instr, char *fpath, char *fspec, char *outstr)
sprintf(str,"%s%c",VERSION,REVISION);
break;
case 'W': /* Time-slice API type (mswtype) */
#if 0 //ndef __FLAT__
strcat(cmd,ultoa(mswtyp,str,10));
#endif
break;
case 'X':
strcat(cmd,cfg.shell[useron.shell]->code);
break;
case '&': /* Address of msr */
sprintf(str,"%lu",(DWORD)&fakeriobp);
strcat(cmd,str);
break;
case 'Y':
strcat(cmd,comspec);
......@@ -2221,17 +2214,12 @@ char* DLLCALL cmdstr(scfg_t* cfg, user_t* user, const char* instr, const char* f
sprintf(str,"%s%c",VERSION,REVISION);
break;
case 'W': /* Time-slice API type (mswtype) */
#if 0 //ndef __FLAT__
strcat(cmd,ultoa(mswtyp,str,10));
#endif
break;
case 'X':
if(user!=NULL)
strcat(cmd,cfg->shell[user->shell]->code);
break;
case '&': /* Address of msr */
sprintf(str,"%lu",(DWORD)&fakeriobp);
strcat(cmd,str);
break;
case 'Y':
break;
......
......@@ -195,13 +195,6 @@ int sbbs_t::xtrn_sec()
char *hungupstr="\1n\1h%s\1n hung up on \1h%s\1n %s\r\n";
#ifndef __FLAT__
extern uint riobp;
#endif
extern int mswtyp;
extern uint fakeriobp;
/****************************************************************************/
/* Convert C string to pascal string */
/****************************************************************************/
......@@ -369,11 +362,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
,cfg.mdm_dial /* Modem dial string */
,cfg.mdm_offh /* Modem off-hook string */
,cfg.mdm_answ /* Modem answer string */
#ifndef __FLAT__
,sys_status&SS_DCDHIGH ? &fakeriobp : &riobp-1 /* Modem status register */
#else
,0L
#endif
);
lfexpand(str,misc);
write(file,str,strlen(str));
......@@ -414,7 +403,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
"%lx\n%d\n"
,ltoaf(useron.flags3,tmp) /* Flag set #3 */
,ltoaf(useron.flags4,tmp2) /* Flag set #4 */
,mswtyp /* Time-slice type */
,0 /* Time-slice type */
,useron.name /* Real name/company */
,cur_rate /* DCE rate */
,cfg.exec_dir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment