]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/log/ModSyslog.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / log / ModSyslog.cc
index 2d5dd3820b72dc1f4c72a40cde8277cf3f14eca6..cbe93746ad3545999353740c8254c776fd85651c 100644 (file)
@@ -1,36 +1,15 @@
 /*
- * DEBUG: section 50    Log file handling
- * AUTHOR: Duane Wessels
- *
- * SQUID Web Proxy Cache          http://www.squid-cache.org/
- * ----------------------------------------------------------
- *
- *  Squid is the result of efforts by numerous individuals from
- *  the Internet community; see the CONTRIBUTORS file for full
- *  details.   Many organizations have provided support for Squid's
- *  development; see the SPONSORS file for full details.  Squid is
- *  Copyrighted (C) 2001 by the Regents of the University of
- *  California; see the COPYRIGHT file for full details.  Squid
- *  incorporates software developed and/or copyrighted by other
- *  sources; see the CREDITS file for full details.
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
  *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
-#include "squid-old.h"
+/* DEBUG: section 50    Log file handling */
+
+#include "squid.h"
+#include "Debug.h"
 
 #if HAVE_SYSLOG
 
@@ -119,46 +98,44 @@ typedef struct {
 #define PRIORITY_MASK (LOG_ERR | LOG_WARNING | LOG_NOTICE | LOG_INFO | LOG_DEBUG)
 
 static void
-logfile_mod_syslog_writeline(Logfile * lf, const char *buf, size_t len)
+logfile_mod_syslog_writeline(Logfile * lf, const char *buf, size_t)
 {
     l_syslog_t *ll = (l_syslog_t *) lf->data;
     syslog(ll->syslog_priority, "%s", (char *) buf);
 }
 
 static void
-logfile_mod_syslog_linestart(Logfile * lf)
+logfile_mod_syslog_linestart(Logfile *)
 {
 }
 
 static void
-logfile_mod_syslog_lineend(Logfile * lf)
+logfile_mod_syslog_lineend(Logfile *)
 {
 }
 
 static void
-logfile_mod_syslog_flush(Logfile * lf)
+logfile_mod_syslog_flush(Logfile *)
 {
 }
 
 static void
-logfile_mod_syslog_rotate(Logfile * lf)
+logfile_mod_syslog_rotate(Logfile *, const int16_t)
 {
 }
 
 static void
-logfile_mod_syslog_close(Logfile * lf)
+logfile_mod_syslog_close(Logfile *lf)
 {
     xfree(lf->data);
     lf->data = NULL;
 }
 
-
-
 /*
  * This code expects the path to be syslog:<priority>
  */
 int
-logfile_mod_syslog_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag)
+logfile_mod_syslog_open(Logfile * lf, const char *path, size_t, int)
 {
     lf->f_close = logfile_mod_syslog_close;
     lf->f_linewrite = logfile_mod_syslog_writeline;
@@ -191,3 +168,4 @@ logfile_mod_syslog_open(Logfile * lf, const char *path, size_t bufsz, int fatal_
     return 1;
 }
 #endif
+