Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Sat, 11 Dec 2004 05:14:07 +0000 (05:14 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Sat, 11 Dec 2004 05:14:07 +0000 (05:14 +0000)
Log message:

Implement a custom assert() macro (in ircd_log.h).  This variant of
assert() is similar to the system assert(), in that it ends with a call to
abort() if the assertion fails; however, logging is done through the
logging subsystem.  (A sentinel is added to (hopefully) prevent an
assertion failure somewhere in the logging subsystem from entering into an
infinite loop; if this happens, there will be no output at all, but abort()
will still be called.)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1271 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

128 files changed:
ChangeLog
include/ircd_log.h
ircd/IPcheck.c
ircd/channel.c
ircd/class.c
ircd/client.c
ircd/dbuf.c
ircd/destruct_event.c
ircd/engine_devpoll.c
ircd/engine_epoll.c
ircd/engine_kqueue.c
ircd/engine_poll.c
ircd/engine_select.c
ircd/fileio.c
ircd/gline.c
ircd/hash.c
ircd/ircd.c
ircd/ircd_alloc.c
ircd/ircd_auth.c
ircd/ircd_crypt.c
ircd/ircd_crypt_native.c
ircd/ircd_crypt_plain.c
ircd/ircd_crypt_smd5.c
ircd/ircd_events.c
ircd/ircd_features.c
ircd/ircd_log.c
ircd/ircd_relay.c
ircd/ircd_reply.c
ircd/ircd_res.c
ircd/ircd_signal.c
ircd/ircd_snprintf.c
ircd/ircd_string.c
ircd/jupe.c
ircd/list.c
ircd/listener.c
ircd/m_account.c
ircd/m_admin.c
ircd/m_asll.c
ircd/m_away.c
ircd/m_burst.c
ircd/m_clearmode.c
ircd/m_close.c
ircd/m_connect.c
ircd/m_cprivmsg.c
ircd/m_create.c
ircd/m_defaults.c
ircd/m_destruct.c
ircd/m_desynch.c
ircd/m_die.c
ircd/m_endburst.c
ircd/m_error.c
ircd/m_get.c
ircd/m_gline.c
ircd/m_help.c
ircd/m_info.c
ircd/m_invite.c
ircd/m_ison.c
ircd/m_join.c
ircd/m_jupe.c
ircd/m_kick.c
ircd/m_kill.c
ircd/m_links.c
ircd/m_list.c
ircd/m_lusers.c
ircd/m_map.c
ircd/m_mode.c
ircd/m_motd.c
ircd/m_names.c
ircd/m_nick.c
ircd/m_notice.c
ircd/m_oper.c
ircd/m_opmode.c
ircd/m_part.c
ircd/m_pass.c
ircd/m_ping.c
ircd/m_pong.c
ircd/m_privmsg.c
ircd/m_privs.c
ircd/m_proto.c
ircd/m_pseudo.c
ircd/m_quit.c
ircd/m_rehash.c
ircd/m_reset.c
ircd/m_restart.c
ircd/m_rping.c
ircd/m_rpong.c
ircd/m_server.c
ircd/m_set.c
ircd/m_settime.c
ircd/m_silence.c
ircd/m_squit.c
ircd/m_stats.c
ircd/m_time.c
ircd/m_tmpl.c
ircd/m_topic.c
ircd/m_trace.c
ircd/m_uping.c
ircd/m_user.c
ircd/m_userhost.c
ircd/m_userip.c
ircd/m_version.c
ircd/m_wallchops.c
ircd/m_wallops.c
ircd/m_wallusers.c
ircd/m_wallvoices.c
ircd/m_who.c
ircd/m_whois.c
ircd/m_whowas.c
ircd/memdebug.c
ircd/motd.c
ircd/msgq.c
ircd/numnicks.c
ircd/os_generic.c
ircd/packet.c
ircd/parse.c
ircd/s_auth.c
ircd/s_bsd.c
ircd/s_conf.c
ircd/s_debug.c
ircd/s_err.c
ircd/s_misc.c
ircd/s_serv.c
ircd/s_user.c
ircd/send.c
ircd/test/ircd_chattr_t.c
ircd/umkpasswd.c
ircd/uping.c
ircd/whowas.c

index 1b391a30eea1ffa36da924139418a6226877550e..0a26e290ac74502e791f857020d21b8bcba2de8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2004-12-11  Kevin L Mitchell  <klmitch@mit.edu>
+
+       * ircd/*.c: use new assert() in ircd_log.h in preference to system
+       assert()
+
+       * ircd/umkpasswd.c: use new assert in ircd_log.h; add necessary
+       glue so that umkpasswd will successfully compile and link
+
+       * ircd/test/ircd_chattr_t.c: comment out include of assert.h since
+       there are no calls to assert()
+
+       * ircd/ircd_log.c: add sentinel (log_inassert) to prevent assert()
+       from looping should there be an assertion failure somewhere in the
+       logging subsystem
+
+       * include/ircd_log.h: custom implementation of assert() that calls
+       log_write()
+
 2004-11-21  Michael Poole <mdpoole@troilus.org>
 
        * ircd/channel.c (mode_parse_upass): Allow forced mode changes to
index 20f0a25dcecde0d5fc25c4b348472a77f83cd8bd..956908cb6af8b2eb44e736a0f29a3c9633d39144 100644 (file)
 #include <stdarg.h>        /* va_list */
 #define INCLUDED_stdarg_h
 #endif
+#ifndef INCLUDED_stdlib_h
+#include <stdlib.h> /* abort */
+#define INCLUDED_stdlib_h
+#endif
 
 struct Client;
 
@@ -107,4 +111,47 @@ extern void log_feature_unmark(void);
 extern int log_feature_mark(int flag);
 extern void log_feature_report(struct Client *to, int flag);
 
+extern int log_inassert;
+
 #endif /* INCLUDED_ircd_log_h */
+
+/* The rest of this file implements our own custom version of assert.
+ * This version will log the assertion failure using the LS_SYSTEM log
+ * stream, thus putting the assertion failure message into a useful
+ * place, rather than elsewhere, as is currently the case...
+ */
+
+/* We've been included twice; clean up before creating assert() again */
+#ifdef _ircd_log_assert
+# undef _ircd_log_assert
+# undef assert
+#endif
+
+/* gcc has a nice way of hinting that an expression is expected to
+ * produce a specific result, which can improve optimization.
+ * Unfortunately, all the world's not gcc (at least, not yet), and not
+ * all gcc's support it.  I don't know exactly when it appeared, but
+ * it does appear to be in all versions from 3 and up.  So, we'll
+ * create a dummy define if (we think) this version of gcc doesn't
+ * have it...
+ */
+#ifndef _log_builtin_expect
+# define _log_builtin_expect
+# if __GNUC__ < 3
+#  define __builtin_expect(expr, expect)       (expr)
+# endif
+#endif
+
+/* let's try not to clash with the system assert()... */
+#ifndef assert
+# ifdef NDEBUG
+#  define assert(expr) ((void)0)
+# else
+#  define assert(expr)                                                       \
+  ((void)(__builtin_expect(!!(expr), 1) ? 0 :                                \
+         (__builtin_expect(log_inassert, 0) ? (abort(), 0) :                 \
+          ((log_inassert = 1), /* inhibit looping in assert() */             \
+           log_write(LS_SYSTEM, L_CRIT, 0, "Assertion failure at %s:%d: "    \
+                     "\"%s\"", __FILE__, __LINE__, #expr), abort(), 0))))
+# endif
+#endif
index d3367539d35b8350cee71e63582cb9426c0f45ce..49a448aca3819171090adc9a0a61bad9a7537deb 100644 (file)
 #include "ircd_alloc.h"
 #include "ircd_events.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "s_debug.h"        /* Debug */
 #include "s_user.h"         /* TARGET_DELAY */
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /** Stores free target information for a particular user. */
index 90eed24df70e11ae167d2fdb71658ce6faab6e9f..4ff88acaa1b759a8d96098d44390b685982c01a2 100644 (file)
@@ -53,7 +53,7 @@
 #include "sys.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 53fd65edd1cb00a713add3bc7a43a2894b3134e5..e0fe644639f230165f2b96b3babee6b54c0575d5 100644 (file)
@@ -27,6 +27,7 @@
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "list.h"
@@ -35,7 +36,7 @@
 #include "s_debug.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /** List of all connection classes. */
 static struct ConnectionClass* connClassList;
index 8568345c3d511d3bb0fe810c68e10e5683c68381..6860d0cb759ff0ac76db84748f9a8476b90721b6 100644 (file)
@@ -26,6 +26,7 @@
 #include "class.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "list.h"
 #include "msgq.h"
@@ -35,7 +36,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /** Find the shortest non-zero ping time attached to a client.
index 13933f1cb8aa8dc7fb3c3d237eb3660d32b5a84c..a7abe5b1a6d85b36c43c778db5cfc51e56b00408 100644 (file)
 #include "ircd_alloc.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "send.h"
 #include "sys.h"       /* MIN */
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index 32bb3fb9d7f3e1d382aafa9425600d9c0bdfb5d2..b16fd98319a5b1e33643137440cf34a055f8090e 100644 (file)
 #include "ircd_alloc.h"
 #include "ircd.h"
 #include "ircd_events.h"
+#include "ircd_log.h"
 #include "send.h"
 #include "msg.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 
 /** Structure describing a destruction event. */
index 9c4d49c2350a5e498eef26953859cd8aad2e9ff1..daceb69617e4af9974253a888e81d36f9305a36c 100644 (file)
@@ -30,7 +30,7 @@
 #include "ircd_log.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <fcntl.h>
 #include <sys/devpoll.h>
index c44e135da44d01bdd4f9760da23db177bbb29d2e..4a929abbe0e935e2a5231ea46880e3d2e45a068b 100644 (file)
@@ -29,7 +29,7 @@
 #include "ircd_log.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <sys/types.h>
 #ifdef HAVE_STDINT_H
index 914a09cedf7f6b75e19d7a59ceba04c82af4c28f..4e419f88f0f069f0d92c84becc4561b6cde44310 100644 (file)
@@ -30,7 +30,7 @@
 #include "ircd_log.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <signal.h>
 #include <sys/event.h>
index 58b3f9e21e34db2fa75ad64abd40843371aff392..e0c4bf4c3aac29cdd3ab0b6d6f9ae0e960bb78a6 100644 (file)
@@ -29,7 +29,7 @@
 #include "ircd_log.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <sys/poll.h>
 #include <sys/socket.h>
index e759967bc2516cac472ceb57848f9a67e6e5ba83..205283c052880437be380ec9f62d4d182d8a19e5 100644 (file)
@@ -35,7 +35,7 @@
 # endif
 #endif
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <string.h> /* needed for bzero() on OS X */
 #include <sys/socket.h>
index 38667868279b4837445f488bea02b211efa311db..2684a3808d037376fb14f59237de708ab397eabc 100644 (file)
@@ -26,8 +26,9 @@
 
 #include "fileio.h"
 #include "ircd_alloc.h"         /* MyMalloc, MyFree */
+#include "ircd_log.h"           /* assert */
 
-#include <assert.h>             /* assert */
+/* #include <assert.h> -- Now using assert in ircd_log.h */       /* assert */
 #include <fcntl.h>              /* O_RDONLY, O_WRONLY, ... */
 #include <stdio.h>              /* BUFSIZ, EOF */
 #include <sys/stat.h>           /* struct stat */
index e0a7278f17c01e50c7f26dbfd2d30cd3db3090e9..68b7a9e83b59bb1efbedc118f9b763161de64fd9 100644 (file)
@@ -46,7 +46,7 @@
 #include "sys.h"    /* FALSE bleah */
 #include "whocmds.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
index aaf017bba75e9cbe4e2c12cc6cdb91fa6322d839..ff777ae58f972c1af2702934bab492bd5b6b874f 100644 (file)
@@ -26,6 +26,7 @@
 #include "channel.h"
 #include "ircd_alloc.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "ircd.h"
@@ -36,7 +37,7 @@
 #include "struct.h"
 #include "sys.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
index 686e874618e8dd5dcd0c06af8b041329dba371c8..175f1e8e50c06d06ce26863f3182a76c33ecb257 100644 (file)
@@ -61,7 +61,7 @@
 #include "version.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <fcntl.h>
 #include <netdb.h>
index 62944c5abfb09ac0802596096848387ecd80613f..5dd4ef7fccd183f91e4594a223ea1d703643b843 100644 (file)
 #include "config.h"
 
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "ircd_string.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 static void nomem_handler(void);
index b6fc1edbc7fc9c086dde09f28d82d09f507bbf49..03c59b804f8095a8ef40b8dd027410d809b95969 100644 (file)
@@ -42,7 +42,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <netdb.h>
 #include <string.h>
index c96c564538da52cee6bf2f22a9bf469bdb44b072..8036ac0fb3e66ae4ba499022bcdd6e8f17fa04fd 100644 (file)
@@ -47,6 +47,7 @@
 #include "ircd_crypt.h"
 #include "ircd_alloc.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_string.h"
 #include "s_debug.h"
 
@@ -55,7 +56,7 @@
 #include "ircd_crypt_plain.h"
 #include "ircd_crypt_smd5.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <unistd.h>
 #include <string.h>
 
index e3a8fbe31297e83a50079c455c542f3e424f2782..25d2b4e0d87023334872397983c3db88e0167377 100644 (file)
 #include "config.h"
 #include "ircd_crypt.h"
 #include "ircd_crypt_native.h"
+#include "ircd_log.h"
 #include "s_debug.h"
 #include "ircd_alloc.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <unistd.h>
 #ifdef HAVE_CRYPT_H
 #include <crypt.h>
index 03cb3e1d4868b215f66b2cd88e8a06350b270844..2b96a735b32900420b609cf53ec00f5751ae8744 100644 (file)
 #include "config.h"
 #include "ircd_crypt.h"
 #include "ircd_crypt_plain.h"
+#include "ircd_log.h"
 #include "s_debug.h"
 #include "ircd_alloc.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <unistd.h>
 
 /** Just sends back the supplied password.
index af583ff89c55fc5018be370d508309a75358afb3..6ef7f4f243788f0c669779585b91d46c13464beb 100644 (file)
 #include "config.h"
 #include "ircd_crypt.h"
 #include "ircd_crypt_smd5.h"
+#include "ircd_log.h"
 #include "ircd_md5.h"
 #include "s_debug.h"
 #include "ircd_alloc.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 #include <unistd.h>
 
index ac61fd3c5720493d18344c67f289fe4174515d0d..29b81a59f15811ece74b4410f50e6b1cfd5b7a70 100644 (file)
@@ -30,7 +30,7 @@
 #include "ircd_snprintf.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <signal.h>
 #include <stdlib.h>
 #include <unistd.h>
index 9c2ad488d1bb009df25ee0fd72f815de39233bcd..a7dac3510da2b9c869f65adbaf2fbfc83733765c 100644 (file)
@@ -46,7 +46,7 @@
 #include "sys.h"    /* FALSE bleah */
 #include "whowas.h"    /* whowas_realloc */
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index aa819b880048ec179187a205fa136d6ace74a285..66b3318b1941cf47f2a76d5df928490ba57308dc 100644 (file)
@@ -38,7 +38,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <fcntl.h>
 #include <stdarg.h>
@@ -52,6 +52,8 @@
 #include <time.h>
 #include <unistd.h>
 
+int log_inassert = 0;
+
 #define LOG_BUFSIZE 2048 /**< Maximum length for a log message. */
 
 /** Select default log level cutoff. */
index 5061a4bfefe7e6b31422acf973eca2333edaa59c..0cb7e80dded0bb8029717f275e92449520f30250 100644 (file)
@@ -52,6 +52,7 @@
 #include "ircd.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -63,7 +64,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 440d84ab4b95856de36dd31dc9d2b12d79b34d84..d5641bec321049be60129b47ca01d7fc61d69dd1 100644 (file)
@@ -29,6 +29,7 @@
 #include "ircd_reply.h"
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_snprintf.h"
 #include "msg.h"
 #include "msgq.h"
@@ -37,7 +38,7 @@
 #include "s_debug.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /** Report a protocol violation warning to anyone listening.  This can
index 0fd56b7c70d4e6a98fb796889720941e820f8106..5ca6feabc5efefd423976ef1bd1252d15d21ddd2 100644 (file)
@@ -40,7 +40,7 @@
 #include "res.h"
 #include "ircd_reslib.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 #include <sys/time.h>
 #include <sys/socket.h>
index afe0b96c4c8b993048c0f704ffcfe62422a47138..9c868b2ff239c0beef3b1029574dfcf454bad02f 100644 (file)
 
 #include "ircd.h"
 #include "ircd_events.h"
+#include "ircd_log.h"
 #include "ircd_signal.h"
 #include "s_conf.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <signal.h>
 
 /** Counts various types of signals that we receive. */
index 3c7cfb02f58792883a18b9d41c566428b2308442..42f0e1054900a164016e72344406e6bacf1a4b97 100644 (file)
 
 #include "client.h"
 #include "channel.h"
+#include "ircd_log.h"
 #include "ircd_snprintf.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <stddef.h>
 #include <stdlib.h>
index 37e4b6cf92f38ac4e751c917e64b73d7ea97ab83..4f90c9f3928b29b14647f14bececf146eb6f85d1 100644 (file)
@@ -28,7 +28,7 @@
 #include "ircd_log.h"
 #include "res.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 #include <regex.h>
 #include <sys/types.h>
index 3d69a74f8cfe74359caeca836c69641a5088e2db..8cdaa9edad061875052ea4e3e0bacee0c95321c3 100644 (file)
@@ -43,7 +43,7 @@
 #include "struct.h"
 #include "sys.h"    /* FALSE bleah */
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /** List of jupes. */
index 2bb9cd8b7e44296bece8d3ed4ca4b0e04a85e175..b01305852b5f0f0dc8d4a312b85ff69baf350828 100644 (file)
@@ -28,6 +28,7 @@
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_events.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "listener.h"
@@ -44,7 +45,7 @@
 #include "struct.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stddef.h>  /* offsetof */
 #include <unistd.h>  /* close */
 #include <string.h>
index b94957986a525b85643926f7437074ec00171c58..76638205f3289f759fb32a5e101541b6c6fd5793 100644 (file)
@@ -28,6 +28,7 @@
 #include "ircd_alloc.h"
 #include "ircd_events.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_osdep.h"
 #include "ircd_reply.h"
 #include "ircd_snprintf.h"
@@ -41,7 +42,7 @@
 #include "send.h"
 #include "sys.h"         /* MAXCLIENTS */
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
index 3b00133aef6eae64adca85be42f12e43de44ecf9..5040a528333ee6c090b5d319ec641653bc79b9c3 100644 (file)
@@ -82,6 +82,7 @@
 
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -90,7 +91,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index dd8d0f4b4a3674759feb871e9736d4555df99c57..bfaa78c46e5b5c14bf172c50694d3aca2bd57509 100644 (file)
@@ -85,6 +85,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "msg.h"
 #include "numeric.h"
@@ -92,7 +93,7 @@
 #include "s_conf.h"
 #include "s_user.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 static int send_admin_info(struct Client* sptr)
 {
index 5da2c87cbba9b0cac49c7eb0fb5ebc7ba6eaf997..cfe1e412d003a6b0e61fbddcf223350fbe6b2e37 100644 (file)
@@ -83,6 +83,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
@@ -93,7 +94,7 @@
 #include "s_bsd.h"
 #include "s_user.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 
 static int send_asll_reply(struct Client *from, struct Client *to, char *server,
index 00fc7ab5d5627db273bf7a9217dbff3756a098e5..ef440c19ab37a54009864dd76bdbbcf0cc5c897c 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -92,7 +93,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index 62a3e363a38d7eb57d8ff40efc8ce520bd8900cb..6618ebc8857a95656336fe201e01432755ba827e 100644 (file)
@@ -87,6 +87,7 @@
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "list.h"
 #include "struct.h"
 #include "ircd_snprintf.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
index c8d3516be58eaa1b85b6db2076c2242bbd24af2c..35ddea9cffb587393f95d9b8c3e2ec15cbe8fd91 100644 (file)
@@ -98,7 +98,7 @@
 #include "s_conf.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * do_clearmode(struct Client *cptr, struct Client *sptr,
index b121a8338339f9a67555eb4e51441cb189840456..d8e519459910d84f487dad702b4dd2b53e9fca94 100644 (file)
 
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "numeric.h"
 #include "s_bsd.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_close - oper message handler
index 55feddd1732b495b2472ad8754d0a7ade56fbf11..d87b20a2249de990f7c43bbcb8ba9c54a35d8f62 100644 (file)
@@ -99,7 +99,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 
 /*
index f714d8f2dcebc95381f32e4891f3b9aa06ef18bf..afda1bc99ba3e6718fd4362b000ae91f32ad7fe5 100644 (file)
 #include "config.h"
 
 #include "client.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "s_user.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_cprivmsg - generic message handler
index 96cf3af23c515b42181c66c164686e9c971cd980..09f5395a5e571c02dbe4e7694de403e2811d2848 100644 (file)
@@ -85,6 +85,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -95,7 +96,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 9afe5c035f177b54fcbfb3eb52e66642484ba5ce..9a85c82e038287010e1eedddecdb977af8dc1bf2 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "numeric.h"
 #include "numnicks.h"
@@ -33,7 +34,7 @@
 #include "supported.h"
 #include "version.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_functions execute protocol messages on this server:
index 4104af14bc7a6222b5cf3dbbf476f0a43389a705..8fca75a636796864826a757e5e6de2467b8edd68 100644 (file)
@@ -27,6 +27,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -36,7 +37,7 @@
 #include "channel.h"
 #include "destruct_event.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 
 /*
index e02a4d46a7fb0fa986ba6239d7be5c7a21966c35..a8533ac2a3a264f28bc02d9cb6264409052dde28 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -92,7 +93,7 @@
 #include "s_bsd.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * ms_desynch - server message handler
index 9b3519d63fae26bdd9416586d7d79b27bdcff6d7..e8f9ccc2e1667ca61c12e6d228204d88460803d3 100644 (file)
@@ -83,6 +83,7 @@
 
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -91,7 +92,7 @@
 #include "s_bsd.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 
 /*
index 68ac9e11490161c7f0eb0b235b9579e03c8d2e74..aea0decf8ae8544f839e84a80dd5a9f1d6cc78e0 100644 (file)
@@ -85,6 +85,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -92,7 +93,7 @@
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * ms_end_of_burst - server message handler
index b84b20f243d080cb201598de3faa3597dab8d688..561fbcffffb44cfe5a673ecb1dda083f135dfbc3 100644 (file)
@@ -85,6 +85,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
@@ -93,7 +94,7 @@
 #include "s_misc.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index 29829955573b7afd7871e1442de904e2809bf9dd..ac7e6e5dc4653a8a40ae7a6ece3d5b3d3954887e 100644 (file)
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_get - oper message handler
index 636879cc422c72279cfe347462d95f04339d39ae..ab60a1a81b6d7e96f4f438e2f4ad7a3b2302ddd3 100644 (file)
@@ -86,6 +86,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -96,7 +97,7 @@
 #include "s_misc.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 1c09943156baa4f223c2408521b98fe1253613e9..482ad8e8e7c3a0a86d7eb34acb7fdb2ddbe0826b 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -91,7 +92,7 @@
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_help - generic message handler
index 5a547ec430b0d89ad8aaf69bf65cc8f36b063a94..0f18c438c97f189a69bb488c00c0b50444feb6bd 100644 (file)
@@ -83,6 +83,7 @@
 
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -94,7 +95,7 @@
 #include "send.h"
 #include "version.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_info - generic message handler
index 4a99cfeeb08bf15822dca45dbb4a80034f7ff5e8..2b8cbcff0980fbe478960b14c4fbb7b4b2d9b338 100644 (file)
@@ -86,6 +86,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "list.h"
@@ -96,7 +97,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_invite - generic message handler
index 1dfa6f2c5b850fb8ea5c4f15c66103cdc952c47f..e5f232f832ddf3170094fe8fa7faf25dec197ec9 100644 (file)
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msgq.h"
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index 76eb13867d65b8b581e510cf01700b3a78af243d..59c667dd8ca4042ec9c53bab847ac79ecd73042e 100644 (file)
@@ -88,6 +88,7 @@
 #include "ircd.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -97,7 +98,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 7d89ee5965ca50812bf48770ab3abdc95e544c26..688dde3666e273f884133797897b59c7759d7dc5 100644 (file)
@@ -87,6 +87,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -97,7 +98,7 @@
 #include "s_misc.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 56fad4287c646ae03aee90b10f0d4d25a9353a29..5af0a4d3d85246c6ff61d6ec81fd48d9a0be53b4 100644 (file)
@@ -85,6 +85,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "send.h"
 #include "ircd_features.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_kick - generic message handler
index b46b78228337af2c50361144f2cbf2abfa805b39..1957fa157239e77c29ee1ccf952f428626203ff9 100644 (file)
@@ -96,7 +96,7 @@
 #include "send.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index cd9014511f3176b8f908ce5356aa229f256d769d..68bf87fd92fc1edc781f9b1c37b0f4847ac2a681 100644 (file)
@@ -85,6 +85,7 @@
 #include "ircd.h"
 #include "ircd_defs.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -95,7 +96,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_links - generic message handler
index 9c96a118d692c33dec4efbaa9d136d7b35741418..471743b838062d2bf1dc3e2fe67d15d62361b04c 100644 (file)
@@ -97,7 +97,7 @@
 #include "s_bsd.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 07c562b4439856ed23fc4b570ce741ee1090c5d0..b1b7afdc9dfb5bae93d1b12524414335e96c94fa 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -94,7 +95,7 @@
 #include "s_serv.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_lusers - generic message handler
index ca1f0bfb3e787f5f941a60aead05f10e37d40f9a..ffbcb183ab0d8ead99605c2b3985759c8daffe14 100644 (file)
@@ -85,6 +85,7 @@
 #include "ircd.h"
 #include "ircd_defs.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_snprintf.h"
 #include "ircd_string.h"
@@ -97,7 +98,7 @@
 #include "send.h"
 #include "querycmds.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <string.h>
 
index c0b514893078f9ed420ebb758b902cba165b26d2..fb957a4bbd3c89fc3cd53e5ce5fd92fe841d581b 100644 (file)
@@ -86,6 +86,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -96,7 +97,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index e2cd87ded6c2369bf307bcf2f36e027687abfbd4..f431df1e5a906a5a0f8db635c7df343ac7cab7d6 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -97,7 +98,7 @@
 #include "send.h"
 
 #include <stdlib.h>
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_motd - generic message handler
index 2ee0c65b1f67ea2f3a0cc52165131164682574d7..bddfd2795b5a2bba07d5b6255e80382270799add 100644 (file)
@@ -85,6 +85,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "s_user.h"
 #include "send.h"
  
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index d993a66f3d16b54402cfe28e14141673ad960960..18ecca5746c96994bfc82a57a33ecc4c016684aa 100644 (file)
@@ -87,6 +87,7 @@
 #include "ircd.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -98,7 +99,7 @@
 #include "send.h"
 #include "sys.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 0d76c2f0639eb85912f7a41a3792092960370f62..6f2d295f37ab1616f4053ee9a296d5f870ed9145 100644 (file)
@@ -83,6 +83,7 @@
 
 #include "client.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "ircd_relay.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
@@ -91,7 +92,7 @@
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 #if !defined(XXX_BOGUS_TEMP_HACK)
index d0e85a12e3f0bc1dc5a7e2d8548ba999ace556b7..3e561ebf32918dec8d68e76c35ce79f263a0757c 100644 (file)
 #include "s_misc.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 0f7ae4ba7b295f988742d4ea06491e7871ffc35e..142f38b4e8f216db94a0692c85eca33428d707fc 100644 (file)
@@ -87,6 +87,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -95,7 +96,7 @@
 #include "send.h"
 #include "s_conf.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * ms_opmode - server message handler
index 00da1ef64f5d07fbb9d763e92ff2ccda2e385420..fd90fbbec6bc6b2249930ef3954054b7d587b0af 100644 (file)
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index 5848c0e7883a7ffb8f5282ea04a6d9494f9c88b2..d25d8a93f5ed9264de3a3cb9ff0a55f85aa5fe57 100644 (file)
 #include "config.h"
 
 #include "client.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mr_pass - registration message handler
index 609e00d457e394e5aadba97240ddf9b9ae017cb0..6766b60797b66683e2ecf8dd9aad614116fcf87f 100644 (file)
 
 #include "client.h"
 #include "hash.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "ircd.h"
 #include "s_debug.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 026cd6bbeee40ac06cc501f04150a12dd9bbc972..e149c23d81d4bffd18e4880a49c10ec15dc2489f 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 #include <stdlib.h>
 
index 28e6fd41060f0f76bdb73d24b28dbb56f24163bf..b9928dc192b146d85bf6d52991eb6701cbebe101 100644 (file)
@@ -85,6 +85,7 @@
 #include "ircd.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_relay.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
@@ -93,7 +94,7 @@
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index f72f38caab05f8d9c349bc7174788dc340579fe6..b36e8b87dfd96c647d8188d624ad41dde61d931e 100644 (file)
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_privs - report operator privileges
index 3a9f3ca6d5cf45405aa1a52c2e7708fba13bcb3b..4bf0a068534d6affb809566ae9d8111d469d4a1f 100644 (file)
@@ -28,6 +28,7 @@
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -39,7 +40,7 @@
 #include "supported.h"
 #include "version.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 544fe627d2aa5af810ecb4cd4a838a923615fb17..b4a17a43655bdd8f9b7ba0e3d6a992878180418d 100644 (file)
@@ -85,6 +85,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_relay.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
@@ -95,7 +96,7 @@
 #include "s_conf.h"
 #include "s_user.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_pseudo - generic service message handler
index a96d434cbe53977e29d6cc0298f47fb8e7490739..9ccc361566d6e0078a7766ad4ab7551b79c53e29 100644 (file)
 #include "channel.h"
 #include "client.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_string.h"
 #include "struct.h"
 #include "s_misc.h"
 #include "ircd_reply.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index e14df3806c783815de72f72a2c27f142ef8e45b6..8e8c2db6f6151111f47f0812e409884a25ec809d 100644 (file)
@@ -91,7 +91,7 @@
 #include "s_conf.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_rehash - oper message handler
index 3c48e17ca5504ee3ea6539884b3b7b52c09297d4..624cb86e386ffaec69c79275b50825afd18acbf5 100644 (file)
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_reset - oper message handler
index b031161d24f91408c9a7fc9a303985a44eca30ab..08246db0b32fd07e6fd4ed012b6fdd286eb2255d 100644 (file)
@@ -90,7 +90,7 @@
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_restart - oper message handler
index 384139016ab6acc0503cdd74f738b52346585391..1db4b239174a047c2bd6d70eb4b08eaf4cdf324d 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 
 /*
index fc2cb42c4b93d5f5ed49a694400a4c204b6c7cf5..4f32f79e1446b633b2311a363e1b7ed5f4e42688 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -92,7 +93,7 @@
 #include "opercmds.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * ms_rpong - server message handler
index a15f66b6d07abc1c52dc816a43c9106b81e76ca3..af7a010a80a6d1a597206d665984663fe4d2301b 100644 (file)
@@ -49,7 +49,7 @@
 #include "send.h"
 #include "userload.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 4cca91af010a385363c562115a0ca308f47bbc4d..861f228448543c672b3a2a8caa06598025f8a900 100644 (file)
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * mo_set - oper message handler
index 30643a741c83d736092267c40956c66cddde2a93..39ec6aa39a708c926bba9ce48e14d542515dc925 100644 (file)
@@ -85,6 +85,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_snprintf.h"
 #include "ircd_string.h"
@@ -96,7 +97,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 
 /*
index a3baa5124a6c8f279edc55f5d35f06d192298dc2..7a78d14dbfea4d1b681e087a7751c415c89d08dc 100644 (file)
@@ -32,6 +32,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_snprintf.h"
 #include "ircd_string.h"
@@ -43,7 +44,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index c0282fec811f9d2252b0c24ea5c0f416929cb95f..ce4dd9991c99cea160e30dbefa21550f9029ba9a 100644 (file)
@@ -28,6 +28,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
@@ -38,7 +39,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 34a7464f12699b892673f2d823ae2b5fc3f40aa0..73cfe8196069da8a9be353cf16c20b35b5f4f0bd 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "send.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index d21646542e19a57c919c25125074d484792f6525..ca8e83018c7763a71109c9f586897bdc8ffbf69f 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_time - generic message handler
index 24aaaaa80145293dc559102c3b1c33da7c3df834..88480ee129d2ddfdd5f2d5c6a9575670231d998c 100644 (file)
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_tmpl - generic message handler
index 2a4c55985f94150bba25e6059ae8479a7168b6ff..d0c674c757d4a62cdd693818f855eb241bb122e1 100644 (file)
@@ -86,6 +86,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h> /* for atoi() */
 
 static void do_settopic(struct Client *sptr, struct Client *cptr, 
index e311682a443778f8557571e1c1126603e2aef21d..e261ac5105c6da091b25852b33b134648b1c329c 100644 (file)
@@ -86,6 +86,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -98,7 +99,7 @@
 #include "send.h"
 #include "version.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 void do_trace(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
index cc10cf917e4d83837b823614e73fe364a0f2556b..8854a247295f38222a3f8c9177faa6ac99439e02 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -96,7 +97,7 @@
 #include "uping.h"
 
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 06a8917de069768ea4bfe729cf9b284661e5aa81..33dd470ce18c50d5f829cf0059d1eed779128f57 100644 (file)
@@ -85,6 +85,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
@@ -94,7 +95,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 9f93381c1d02de798fc1c2c2fff8b812a683226d..0d49fceb3b902dc0424b4abe860eb21b57e31c0d 100644 (file)
@@ -82,6 +82,7 @@
 #include "config.h"
 
 #include "client.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msgq.h"
@@ -89,7 +90,7 @@
 #include "s_user.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 static void userhost_formatter(struct Client* cptr, struct Client *sptr, struct MsgBuf* mb)
 {
index 80078ff2c54b7420fbbe3b403fe63448e3d80e78..82f2b45517b403c53ddfb3d4851d2922f0ce83f3 100644 (file)
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "msgq.h"
 #include "numeric.h"
 #include "s_user.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 static void userip_formatter(struct Client* cptr, struct Client *sptr, struct MsgBuf* mb)
 {
index 39e6cd3d775ebe1c92eff4b26b135826418d602e..340991b81ccf114aa6911c940f3c5023d3f85bd9 100644 (file)
@@ -85,6 +85,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_snprintf.h"
 #include "ircd_string.h"
@@ -97,7 +98,7 @@
 #include "supported.h"
 #include "version.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_version - generic message handler
index d9732be9ebcf698170d8da549b3e2a9fe2ce0e25..a3a91339eaddc343b5044c04a09c3ac23fb71d6e 100644 (file)
@@ -85,6 +85,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -93,7 +94,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_wallchops - local generic message handler
index 5c98a2400a6dd18c54371a83194b2fb6c4b0a6a3..dfa10e48ef071d71b946684d760b9d81d0513dca 100644 (file)
 #include "config.h"
 
 #include "client.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 
 /*
index e5e0cdb61762d9846fb385a51e31ae414e4c16a1..dc53baab7284b89ce204787886042502f02ff49b 100644 (file)
 #include "config.h"
 
 #include "client.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 
 /*
index 4dfad262dc6cd4500e21b708e7b54173b7460717..2fdc5f3fdef3b353dcc311259e7d38ea1a5e0c88 100644 (file)
@@ -84,6 +84,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -92,7 +93,7 @@
 #include "s_user.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /*
  * m_wallvoices - local generic message handler
index 04075ca0a3d3696c58a48da62316493ac2147918..35b40939d8ecca9763f32ac91dceabe2723d3ad1 100644 (file)
@@ -96,7 +96,7 @@
 #include "send.h"
 #include "whocmds.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 
index 343ca82d7af9414ed91bcaa8574367e693e4b2bb..5ba4a460fbb8deb2fd9124d759531d0dadb89a4f 100644 (file)
@@ -86,6 +86,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -96,7 +97,7 @@
 #include "send.h"
 #include "whocmds.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
index f6a4cdfebb1e3515a277762d6cab4962c0580af8..bea409ac8c8b545c7247fed598ab1142056d767a 100644 (file)
@@ -85,6 +85,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -95,7 +96,7 @@
 #include "send.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 
 /*
index 0c84ea14fc8cab048d13f35b6f547f0732568670..8e998209e0494d17e7e3db87bc2b7304e7e5785d 100644 (file)
@@ -1,11 +1,12 @@
 #include <sys/types.h>
 #include "ircd.h"
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "client.h"
 #include "s_debug.h"
 #include <stdlib.h>
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 #ifdef MDEBUG
 
index 8359f21426648689e4d0104e987a7630d8def482..dc92c97e260d897a6c1a2b79d6e9a0b33956e9e8 100644 (file)
@@ -34,6 +34,7 @@
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "match.h"
@@ -46,7 +47,7 @@
 #include "s_stats.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
index 2eeda9977cfb0fa7d04449087d8cd5bfd6f83104..1119214e2d9a1c938bef5c8330c9b49e002f46e4 100644 (file)
@@ -27,6 +27,7 @@
 #include "ircd_alloc.h"
 #include "ircd_defs.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_snprintf.h"
 #include "numeric.h"
@@ -34,7 +35,7 @@
 #include "s_debug.h"
 #include "s_stats.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdarg.h>
 #include <string.h>
 #include <sys/types.h>
index f84c335f3a98464d8b0ebe8c4ab5b8436ac50371..931c1ca83b0eb53f38f54bca93fbf5e317f18521 100644 (file)
@@ -26,6 +26,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "ircd_string.h"
 #include "match.h"
 #include "s_bsd.h"
@@ -33,7 +34,7 @@
 #include "s_misc.h"
 #include "struct.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 9191b387303639541a7925fd1c407dc296920464..3f52e76cd1e9e0aa7ecd121b08ca8e240065b63d 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "ircd_osdep.h"
 #include "msgq.h"
+#include "ircd_log.h"
 #include "res.h"
 #include "s_bsd.h"
 #include "sys.h"
@@ -37,7 +38,7 @@
  * Solaris requires sys/time.h before struct rusage (indirectly) in
  * netinet/in.h.
  */
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
index 87853f6922669539f9b5193f4b9834055e1d37c4..763440864ab2e84ef722f1656d45a25427c7d87e 100644 (file)
 #include "client.h"
 #include "ircd.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "parse.h"
 #include "s_bsd.h"
 #include "s_misc.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /** Add a certain number of bytes to a client's received statistics.
  * @param[in,out] cptr Client to update.
index 693d5ecc2afb38d7aae91d940074b5122d1f99f9..ac69fe653449d7c2e0e3ab3c6d0650b04f912bad 100644 (file)
@@ -32,6 +32,7 @@
 #include "ircd_alloc.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -52,7 +53,7 @@
 #include "whocmds.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 #include <stdlib.h>
 
index 5baa898abad1a6ce15b4a3aad425e5a4d06b69a3..2d67d3f3ce333b3af606a59688ce2affa2b7bf06 100644 (file)
@@ -61,7 +61,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <sys/socket.h>
 #include <sys/file.h>
 #include <sys/ioctl.h>
index 6a3d9e4619a27afd93b1e71649d1a879091c9b6c..97c63b06382f86cd698409eddb64339569c782da 100644 (file)
@@ -59,7 +59,7 @@
 #include "version.h"
 
 #include <arpa/inet.h>
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <fcntl.h>
 #include <netdb.h>
index 160b4e008230b450f49f8f90ec70b244c71b71f4..12a5ac806fee359a969a2929f013daebe606f8a3 100644 (file)
@@ -56,7 +56,7 @@
 #include "struct.h"
 #include "sys.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <arpa/inet.h>
 #include <errno.h>
 #include <fcntl.h>
index 6f1266cc952cfdbd557408e5d55a0c1d2cb9fb0e..15ea2f547f28f8acdefb9ddd6cf1cf7f4a8334d1 100644 (file)
@@ -50,7 +50,7 @@
 #include "sys.h"
 #include "whowas.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <fcntl.h>
 #include <stdarg.h>
index 85f188390bb31ead2560d37cdf219f0034cb6340..041520e1ac18b6e82b0ddfb2f93cf5edbb9e2275 100644 (file)
 #include "config.h"
 
 #include "numeric.h"
+#include "ircd_log.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /** Array of Numeric replies, indexed by numeric. */
index 1b892fc287169dba7277fa24d1b452289a21b232..1476f2c6a7a9e475346ebbd8abe74783802c781f 100644 (file)
@@ -58,7 +58,7 @@
 #include "uping.h"
 #include "userload.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <fcntl.h>
 #include <netdb.h>
 #include <stdio.h>
index 1da2bfdd3679ebbd1ba759e5ba0317c9ad198901..2fb07942bc73c3e38ac2528036556da16c5ef1db 100644 (file)
@@ -34,6 +34,7 @@
 #include "hash.h"
 #include "ircd.h"
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "ircd_snprintf.h"
@@ -57,7 +58,7 @@
 #include "sys.h"
 #include "userload.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>
 
index 5e6ebe3af93eeec424612ed07e5ead69a45b6a8a..3e7fd6b8d2b261aa57797e7c9e2ce6b1d9fb5fe8 100644 (file)
@@ -66,7 +66,7 @@
 
 #include "handlers.h" /* m_motd and m_lusers */
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
index 54c38a84ba8e213bee51fa7d1640c698461d6de6..4dc21eaec3cbc14f9befb3ce7cc8d37999abf6c5 100644 (file)
@@ -29,6 +29,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_snprintf.h"
 #include "ircd_string.h"
 #include "list.h"
@@ -43,7 +44,7 @@
 #include "struct.h"
 #include "sys.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdio.h>
 #include <string.h>
 
index 806a3e62e47608f056b7809987faa1228351cc3e..04051e27c23f5fa6d8d957657859552c7dd3e29a 100644 (file)
@@ -2,7 +2,7 @@
  * ircd_chattr_t.c - Test file for character attributes
  */
 #include "ircd_chattr.h"
-#include <assert.h>
+/* #include <assert.h> -- not used here */
 #include <stdio.h>
 
 typedef int (*EvalFn)(char);
index 29a2bea29118655be4449688f19f9b225fffe596..aa2f7f63f49d0798092d7ac5c3df9babee4d7bcd 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 
 /* ircu headers */
 #include "ircd_alloc.h"
+#include "ircd_log.h" /* for ircd's assert.h */
 #include "ircd_string.h"
 #include "umkpasswd.h"
 #include "s_debug.h"
@@ -44,6 +45,7 @@
 /* bleah, evil globals */
 umkpasswd_conf_t* umkpasswd_conf;
 crypt_mechs_t* crypt_mechs_root;
+int log_inassert = 0;
 
 void copyright(void)
 {
@@ -94,6 +96,17 @@ int err = errno;
   errno = err;
 }
 
+/* quick implementation of log_write() for assert() call */
+void log_write(enum LogSys subsys, enum LogLevel severity,
+              unsigned int flags, const char *fmt, ...)
+{
+  va_list vl;
+  va_start(vl, fmt);
+  vfprintf(stderr, fmt, vl);
+  fprintf(stderr, "\n");
+  va_end(vl);
+}
+
 /* quick and dirty salt generator */
 char *make_salt(const char *salts)
 {
index 3342c8a26194648e9b496f0807fdb31f9b8849b8..c2d70ab857b4c4232403bbc1944852062185ac96 100644 (file)
@@ -43,7 +43,7 @@
 #include "sys.h"
 
 #include <arpa/inet.h>
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <netdb.h>
 #include <stdio.h>
index b8fc1734eb3fd4cf91b36f9f44c868d7b9702165..4546b5710a1f7f14798caebd58aad8d9efb3e53b 100644 (file)
@@ -40,6 +40,7 @@
 #include "ircd_alloc.h"
 #include "ircd_chattr.h"
 #include "ircd_features.h"
+#include "ircd_log.h"
 #include "ircd_string.h"
 #include "list.h"
 #include "numeric.h"
@@ -51,7 +52,7 @@
 #include "sys.h"
 #include "msg.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
 #include <string.h>