mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
Removed some unused variables. There's more to be done.
This commit is contained in:
@@ -886,11 +886,10 @@ int num_matches(const char *mask, const char *text)
|
|||||||
int is_safepath(const char *path, int filemustexist)
|
int is_safepath(const char *path, int filemustexist)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
ino_t ino;
|
|
||||||
char tmp[PATH_MAX];
|
char tmp[PATH_MAX];
|
||||||
const char *src;
|
const char *src;
|
||||||
char *dst;
|
char *dst;
|
||||||
int r,mo,dir_r,orr,oerrno;
|
int mo,dir_r,orr,oerrno;
|
||||||
|
|
||||||
#ifdef TEST
|
#ifdef TEST
|
||||||
memset(&st,0,sizeof(st));
|
memset(&st,0,sizeof(st));
|
||||||
|
|||||||
@@ -150,7 +150,6 @@ void on_join(Chan *chan, char *from)
|
|||||||
{
|
{
|
||||||
Ban *ban;
|
Ban *ban;
|
||||||
ChanUser *cu;
|
ChanUser *cu;
|
||||||
char *channel;
|
|
||||||
int vpri;
|
int vpri;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -171,7 +170,6 @@ void on_join(Chan *chan, char *from)
|
|||||||
if (!chan->bot_is_op)
|
if (!chan->bot_is_op)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
channel = chan->name;
|
|
||||||
cu = chan->users;
|
cu = chan->users;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ int orig_kerning;
|
|||||||
|
|
||||||
int read_bigcharset_callback(char *rest)
|
int read_bigcharset_callback(char *rest)
|
||||||
{
|
{
|
||||||
Strp *sp,**pp;
|
|
||||||
char *opt;
|
char *opt;
|
||||||
int *n,sz;
|
int *n,sz;
|
||||||
|
|
||||||
@@ -119,7 +118,6 @@ int read_bigcharset_callback(char *rest)
|
|||||||
int read_bigcharset(char *fname)
|
int read_bigcharset(char *fname)
|
||||||
{
|
{
|
||||||
BigC *bigc;
|
BigC *bigc;
|
||||||
Strp *sp;
|
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if ((fd = open(fname,O_RDONLY)) < 0)
|
if ((fd = open(fname,O_RDONLY)) < 0)
|
||||||
@@ -172,7 +170,7 @@ void do_bigsay(COMMAND_ARGS)
|
|||||||
Strp *sp;
|
Strp *sp;
|
||||||
char output[MSGLEN];
|
char output[MSGLEN];
|
||||||
char *pt,*tail,*temp,*temp2;
|
char *pt,*tail,*temp,*temp2;
|
||||||
int i,x,sz;
|
int i,x;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
debug("(do_bigsay) rest = \"%s\"\n",rest);
|
debug("(do_bigsay) rest = \"%s\"\n",rest);
|
||||||
@@ -189,7 +187,6 @@ void do_bigsay(COMMAND_ARGS)
|
|||||||
#define OEND (output + MSGLEN - 1)
|
#define OEND (output + MSGLEN - 1)
|
||||||
for(i=0;i<charheight;i++)
|
for(i=0;i<charheight;i++)
|
||||||
{
|
{
|
||||||
sz = 0;
|
|
||||||
*output = 0;
|
*output = 0;
|
||||||
tail = output;
|
tail = output;
|
||||||
for(pt=rest;*pt;pt++)
|
for(pt=rest;*pt;pt++)
|
||||||
|
|||||||
Reference in New Issue
Block a user