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