Remove unnecessary inclusions of <numbers.h>
Functions display_msg() and check_sync() are only used in numbers.c, so they can be static. Remove inclusions of <numbers.h> from .c files that don't need it.
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
#define __numbers_h_
|
||||
|
||||
char *numeric_banner(void);
|
||||
void display_msg(char *, char **);
|
||||
void numbered_command(char *, int, char **);
|
||||
int check_sync(int, char *, char *, char *, char *, ChannelList *);
|
||||
|
||||
#endif /* __numbers_h_ */
|
||||
|
||||
@@ -24,7 +24,6 @@ CVS_REVISION(alias_c)
|
||||
#include "ircaux.h"
|
||||
#include "names.h"
|
||||
#include "notify.h"
|
||||
#include "numbers.h"
|
||||
#include "output.h"
|
||||
#include "parse.h"
|
||||
#include "screen.h"
|
||||
|
||||
@@ -52,7 +52,6 @@ CVS_REVISION(commands2_c)
|
||||
#include "output.h"
|
||||
#include "exec.h"
|
||||
#include "notify.h"
|
||||
#include "numbers.h"
|
||||
#include "status.h"
|
||||
#include "if.h"
|
||||
#include "help.h"
|
||||
|
||||
@@ -23,7 +23,6 @@ CVS_REVISION(funny_c)
|
||||
#include "lastlog.h"
|
||||
#include "ircterm.h"
|
||||
#include "output.h"
|
||||
#include "numbers.h"
|
||||
#include "parse.h"
|
||||
#include "status.h"
|
||||
#include "misc.h"
|
||||
|
||||
@@ -43,7 +43,6 @@ CVS_REVISION(irc_c)
|
||||
#include "history.h"
|
||||
#include "exec.h"
|
||||
#include "notify.h"
|
||||
#include "numbers.h"
|
||||
#include "mail.h"
|
||||
#include "debug.h"
|
||||
#include "newio.h"
|
||||
|
||||
@@ -53,7 +53,6 @@ CVS_REVISION(misc_c)
|
||||
#include "output.h"
|
||||
#include "exec.h"
|
||||
#include "notify.h"
|
||||
#include "numbers.h"
|
||||
#include "status.h"
|
||||
#include "list.h"
|
||||
#include "timer.h"
|
||||
|
||||
@@ -25,7 +25,6 @@ CVS_REVISION(names_c)
|
||||
#include "lastlog.h"
|
||||
#include "list.h"
|
||||
#include "output.h"
|
||||
#include "numbers.h"
|
||||
#include "userlist.h"
|
||||
#include "timer.h"
|
||||
#include "input.h"
|
||||
|
||||
@@ -85,7 +85,7 @@ char *numeric_banner(void)
|
||||
return (thing);
|
||||
}
|
||||
|
||||
int check_sync(int comm, char *channel, char *nick, char *whom, char *bantime, ChannelList *chan)
|
||||
static int check_sync(int comm, char *channel, char *nick, char *whom, char *bantime, ChannelList *chan)
|
||||
{
|
||||
ChannelList *tmp = NULL;
|
||||
BanList *new;
|
||||
@@ -245,7 +245,7 @@ static int check_server_sync(char *from, char **ArgList)
|
||||
* possible formats that the irc server spits out. you'd think someone would
|
||||
* simplify this
|
||||
*/
|
||||
void display_msg(char *from, char **ArgList)
|
||||
static void display_msg(char *from, char **ArgList)
|
||||
{
|
||||
char *ptr,
|
||||
*s,
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include "output.h"
|
||||
#include "exec.h"
|
||||
#include "notify.h"
|
||||
#include "numbers.h"
|
||||
#include "status.h"
|
||||
#include "if.h"
|
||||
#include "help.h"
|
||||
|
||||
@@ -31,7 +31,6 @@ CVS_REVISION(userlist_c)
|
||||
#include "output.h"
|
||||
#include "exec.h"
|
||||
#include "notify.h"
|
||||
#include "numbers.h"
|
||||
#include "status.h"
|
||||
#include "list.h"
|
||||
#include "struct.h"
|
||||
|
||||
@@ -24,7 +24,6 @@ CVS_REVISION(whowas_c)
|
||||
#include "names.h"
|
||||
#include "alias.h"
|
||||
#include "output.h"
|
||||
#include "numbers.h"
|
||||
#include "status.h"
|
||||
#include "screen.h"
|
||||
#include "commands.h"
|
||||
|
||||
Reference in New Issue
Block a user