From 58b5d39fea94afa77761c12f4628642e88f838cf Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Wed, 13 Nov 2013 11:43:57 +0000 Subject: [PATCH] Remove unnecessary variable proctitlestr. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@462 13b04d17-f746-0410-82c6-800466cd88b0 --- source/compat.c | 1 - source/irc.c | 4 +--- source/scr-bx.c | 1 - source/wserv.c | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/source/compat.c b/source/compat.c index a5aa741..d5beedf 100644 --- a/source/compat.c +++ b/source/compat.c @@ -2148,7 +2148,6 @@ retval: #ifdef CLOAKED -char proctitlestr[140]; char **Argv = NULL; /* pointer to argument vector */ char *LastArgv = NULL; /* end of argv */ diff --git a/source/irc.c b/source/irc.c index 07b459f..8a0c261 100644 --- a/source/irc.c +++ b/source/irc.c @@ -648,7 +648,6 @@ int old_strip_ansi = strip_ansi_in_echo; * The -s flag is hard to use without an argument unless youre careful. */ #ifdef CLOAKED -extern char proctitlestr[140]; extern char **Argv; extern char *LastArgv; #endif @@ -1649,8 +1648,7 @@ int main(int argc, char *argv[], char *envp[]) #ifdef CLOAKED initsetproctitle(argc, argv, envp); - snprintf(proctitlestr, sizeof proctitlestr, CLOAKED); - setproctitle("%s", proctitlestr); + setproctitle("%s", CLOAKED); #endif /* We move from run level 0 to run level 1 diff --git a/source/scr-bx.c b/source/scr-bx.c index 2a1d346..7c16759 100644 --- a/source/scr-bx.c +++ b/source/scr-bx.c @@ -73,7 +73,6 @@ static int displays = 0; #define SOCKMODE (S_IWRITE | S_IREAD | (displays ? S_IEXEC : 0)) #ifdef CLOAKED -extern char proctitlestr[140]; extern char **Argv; /* pointer to argument vector */ extern char *LastArgv; /* end of argv */ #endif diff --git a/source/wserv.c b/source/wserv.c index f552daf..7c843b4 100644 --- a/source/wserv.c +++ b/source/wserv.c @@ -34,7 +34,6 @@ void my_exit(int); void ignore (int value); #ifdef CLOAKED -extern char proctitlestr[140]; extern char **Argv; extern char *LastArgv; #endif