From: Michael Poole Date: Tue, 28 Dec 2004 22:35:38 +0000 (+0000) Subject: Remove unused macros and #include s. X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=da712d65837b082fadf38f7ef573a3b9476c1883;p=ircu2.10.12-pk.git Remove unused macros and #include s. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1289 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 7eb2781..1767505 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2004-12-28 Michael Poole + + * ircd/sys.h (BITS_ZERO_ON_*, HAVE_RELIABLE_SIGNALS, DOCURSES, + DOTERMCAP, IRC_UID, IRC_GID, LIMIT_FMT, FALSE, TRUE): Remove + unused macros. + + * ircd/ircd_auth.c, ircd/listener.c, ircd/s_auth.c, ircd/s_bsd.c, + ircd/s_conf.c, ircd/uping.c, ircd/whocmds.c: Remove obsolete + #include . + 2004-12-28 Michael Poole * ircd/match.c: Remove obsolete #include . diff --git a/include/sys.h b/include/sys.h index e35bc97..7faef89 100644 --- a/include/sys.h +++ b/include/sys.h @@ -21,14 +21,6 @@ #ifndef INCLUDED_sys_h #define INCLUDED_sys_h -#if WORDS_BIGENDIAN -# define BIT_ZERO_ON_LEFT -#else -# define BIT_ZERO_ON_RIGHT -#endif - -#define HAVE_RELIABLE_SIGNALS - /* * safety margin so we can always have one spare fd, for motd/authd or * whatever else. -24 allows "safety" margin of 10 listen ports, 8 servers @@ -36,23 +28,6 @@ */ #define MAXCLIENTS (MAXCONNECTIONS-24) -#ifdef HAVECURSES -#define DOCURSES -#else -#undef DOCURSES -#endif - -#ifdef HAVETERMCAP -#define DOTERMCAP -#else -#undef DOTERMCAP -#endif - -#ifndef CONFIG_SETUGID -#undef IRC_UID -#undef IRC_GID -#endif - /* Define FD_SETSIZE to what we want before including sys/types.h on BSD */ #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__bsdi__) #if ((!defined(USE_POLL)) && (!defined(FD_SETSIZE))) @@ -60,16 +35,7 @@ #endif #endif -#define LIMIT_FMT "%d" - #define IRCD_MAX(a, b) ((a) > (b) ? (a) : (b)) #define IRCD_MIN(a, b) ((a) < (b) ? (a) : (b)) -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef TRUE -#define TRUE 1 -#endif - #endif /* INCLUDED_sys_h */ diff --git a/ircd/ircd_auth.c b/ircd/ircd_auth.c index 03c59b8..afbb937 100644 --- a/ircd/ircd_auth.c +++ b/ircd/ircd_auth.c @@ -49,7 +49,6 @@ #include #include #include -#include #ifdef HAVE_STDINT_H #include #endif diff --git a/ircd/listener.c b/ircd/listener.c index 7663820..c3f85dd 100644 --- a/ircd/listener.c +++ b/ircd/listener.c @@ -50,7 +50,6 @@ #include #include #include -#include /** List of listening sockets. */ struct Listener* ListenerPollList = 0; diff --git a/ircd/s_auth.c b/ircd/s_auth.c index 2d67d3f..a7d47f4 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -54,7 +54,6 @@ #include "struct.h" #include "sys.h" /* TRUE bleah */ -#include /* inet_netof */ #include /* struct hostent */ #include #include diff --git a/ircd/s_bsd.c b/ircd/s_bsd.c index 47a9afd..93e8a67 100644 --- a/ircd/s_bsd.c +++ b/ircd/s_bsd.c @@ -58,7 +58,6 @@ #include "uping.h" #include "version.h" -#include /* #include -- Now using assert in ircd_log.h */ #include #include diff --git a/ircd/s_conf.c b/ircd/s_conf.c index 2a5e12e..0d0ff68 100644 --- a/ircd/s_conf.c +++ b/ircd/s_conf.c @@ -57,7 +57,6 @@ #include "sys.h" /* #include -- Now using assert in ircd_log.h */ -#include #include #include #include diff --git a/ircd/uping.c b/ircd/uping.c index c2d70ab..6982577 100644 --- a/ircd/uping.c +++ b/ircd/uping.c @@ -42,7 +42,6 @@ #include "send.h" #include "sys.h" -#include /* #include -- Now using assert in ircd_log.h */ #include #include diff --git a/ircd/whocmds.c b/ircd/whocmds.c index 255c3fd..34f7ee7 100644 --- a/ircd/whocmds.c +++ b/ircd/whocmds.c @@ -54,7 +54,6 @@ #include "whowas.h" #include "msg.h" -#include /* inet_ntoa */ #include #include #include