Remove some unused variables.
Found with llvm static analyzer.
This commit is contained in:
parent
86aba27c2d
commit
f93bc39774
3 changed files with 3 additions and 6 deletions
|
@ -642,7 +642,6 @@ set_server_gecos(struct Client *client_p, const char *info)
|
|||
{
|
||||
char *p;
|
||||
char *s;
|
||||
char *t;
|
||||
|
||||
s = LOCAL_COPY(info);
|
||||
|
||||
|
@ -651,7 +650,7 @@ set_server_gecos(struct Client *client_p, const char *info)
|
|||
*p = '\0';
|
||||
|
||||
/* check for a ] which would symbolise an [IP] */
|
||||
if((t = strchr(s, ']')))
|
||||
if(strchr(s, ']'))
|
||||
{
|
||||
/* set s to after the first space */
|
||||
if(p)
|
||||
|
|
|
@ -151,7 +151,6 @@ build_nicklist(struct Client *source_p, char *addbuf, char *delbuf, const char *
|
|||
int lenadd;
|
||||
int lendel;
|
||||
int del;
|
||||
struct Client *target_p;
|
||||
char *n = LOCAL_COPY(nicks);
|
||||
|
||||
*addbuf = *delbuf = '\0';
|
||||
|
@ -166,7 +165,7 @@ build_nicklist(struct Client *source_p, char *addbuf, char *delbuf, const char *
|
|||
name++;
|
||||
}
|
||||
|
||||
if((target_p = find_named_person(name)) == NULL)
|
||||
if(find_named_person(name) == NULL)
|
||||
{
|
||||
sendto_one_numeric(source_p, ERR_NOSUCHNICK,
|
||||
form_str(ERR_NOSUCHNICK), name);
|
||||
|
|
|
@ -96,11 +96,10 @@ static int
|
|||
mo_kline(struct Client *client_p, struct Client *source_p,
|
||||
int parc, const char **parv)
|
||||
{
|
||||
char def[] = "No Reason";
|
||||
char user[USERLEN + 2];
|
||||
char host[HOSTLEN + 2];
|
||||
char buffer[IRCD_BUFSIZE];
|
||||
char *reason = def;
|
||||
char *reason;
|
||||
char *oper_reason;
|
||||
const char *current_date;
|
||||
const char *target_server = NULL;
|
||||
|
|
Loading…
Reference in a new issue