Explorar el Código

Revert "No need to call irc_log as it does nothing."

This reverts commit 72c41026501f8bb73f38c4a84dca48fe7e5557d6.

This breaks the GCC build as it thinks params are unused.

Conflicts:
	doc/UPDATES.md
Bryan Drewery hace 6 años
padre
commit
d8de33d185
Se han modificado 2 ficheros con 0 adiciones y 6 borrados
  1. 0 2
      src/log.cc
  2. 0 4
      src/log.h

+ 0 - 2
src/log.cc

@@ -335,7 +335,6 @@ void putlog(int type, const char *chname, const char *format, ...)
   }
 }
 
-#if 0
 void
 irc_log(struct chanset_t *chan, const char *format, ...)
 {
@@ -363,5 +362,4 @@ irc_log(struct chanset_t *chan, const char *format, ...)
 */
 #endif 
 }
-#endif
 /* vim: set sts=2 sw=2 ts=8 et: */

+ 0 - 4
src/log.h

@@ -33,11 +33,7 @@ void putlog (int, const char *, const char *, ...) __attribute__((format(printf,
 int logmodes(const char *);
 char *masktype(int);
 char *maskname(int);
-#if 0
 void irc_log(struct chanset_t *, const char *, ...) __attribute__((format(printf, 2, 3)));
-#else
-#define irc_log(...)
-#endif
 void logfile(int type, const char *msg);
 
 extern int		conmask;