Commit 7a31ba77 authored by deuce's avatar deuce
Browse files

Remove unused variables and fix an incorrect typecast in realloc()

parent 115b6df5
......@@ -618,7 +618,7 @@ configuration before deciding, hit ~ ESC ~.
void txt_cfg()
{
static int txt_dflt,bar;
char str[128],code[128],done=0,*p;
char str[128],code[128],done=0;
int j,k;
uint i;
static txtsec_t savtxtsec;
......@@ -786,7 +786,7 @@ abreviation of the name.
void shell_cfg()
{
static int shell_dflt,shell_bar;
char str[128],code[128],done=0,*p;
char str[128],code[128],done=0;
int j,k;
uint i;
static shell_t savshell;
......
......@@ -205,7 +205,7 @@ when running this chat pager, set this option to either `Standard` or ~Console~.
void chan_cfg()
{
static int chan_dflt,chan_bar,opt_dflt;
char str[128],code[128],done=0,*p;
char str[128],code[128],done=0;
int j,k;
uint i;
static chan_t savchan;
......@@ -611,7 +611,7 @@ This is the output string that results from this chat action.
void guru_cfg()
{
static int guru_dflt,guru_bar,opt_dflt;
char str[128],code[128],done=0,*p;
char str[128],code[128],done=0;
int j,k;
uint i;
static guru_t savguru;
......
......@@ -1218,7 +1218,7 @@ this option to `Strip out`.
,sizeof(ulong *)*(cfg.qhub[num]->subs+1)))==NULL
|| (cfg.qhub[num]->conf=(ushort *)realloc(cfg.qhub[num]->conf
,sizeof(ushort *)*(cfg.qhub[num]->subs+1)))==NULL
|| (cfg.qhub[num]->mode=(uchar *)realloc(cfg.qhub[num]->mode
|| (cfg.qhub[num]->mode=(char *)realloc(cfg.qhub[num]->mode
,sizeof(uchar *)*(cfg.qhub[num]->subs+1)))==NULL) {
errormsg(WHERE,ERR_ALLOC,nulstr,cfg.qhub[num]->subs+1);
continue;
......
......@@ -38,7 +38,7 @@
void sub_cfg(uint grpnum)
{
static int dflt,tog_dflt,opt_dflt,net_dflt,adv_dflt,bar;
char str[128],str2[128],done=0,code[128],*p;
char str[128],str2[128],done=0,code[128];
char path[MAX_PATH+1];
char data_dir[MAX_PATH+1];
int j,m,n,ptridx,q,s;
......
......@@ -679,7 +679,7 @@ command: `DIR /ON /AD /B > DIRS.RAW`
void dir_cfg(uint libnum)
{
static int dflt,bar,tog_dflt,tog_bar,adv_dflt,opt_dflt;
char str[128],str2[128],code[128],path[MAX_PATH+1],done=0,*p;
char str[128],str2[128],code[128],path[MAX_PATH+1],done=0;
char data_dir[MAX_PATH+1];
int j,n;
uint i,dirnum[MAX_OPTS+1];
......
......@@ -781,7 +781,7 @@ re-initialized, set this option to ~Yes~.
void xtrn_cfg(uint section)
{
static int ext_dflt,ext_bar,sub_bar,opt_dflt,time_dflt;
char str[128],code[128],done=0,*p;
char str[128],code[128],done=0;
int j,k;
uint i,n,xtrnnum[MAX_OPTS+1];
static xtrn_t savxtrn;
......@@ -1507,7 +1507,7 @@ option to `Yes`.
void xedit_cfg()
{
static int dflt,dfltopt,bar;
char str[81],code[81],done=0,*p;
char str[81],code[81],done=0;
int j,k;
uint i;
static xedit_t savxedit;
......@@ -2079,7 +2079,7 @@ return(0);
void xtrnsec_cfg()
{
static int xtrnsec_dflt,xtrnsec_opt;
char str[128],code[128],done=0,*p;
char str[128],code[128],done=0;
int j,k;
uint i;
static xtrnsec_t savxtrnsec;
......
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