ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/log.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/log.c (file contents):
Revision 1831 by michael, Mon Apr 15 10:57:05 2013 UTC vs.
Revision 2916 by michael, Sat Jan 25 21:09:18 2014 UTC

# Line 1 | Line 1
1   /*
2 < *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 < *  log.c: Logger functions.
2 > *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (C) 2002 by the past and present ircd coders, and others.
4 > *  Copyright (c) 1997-2014 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 18 | Line 17
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   *  USA
21 *
22 *  $Id$
20   */
21  
22 < #include "stdinc.h"
22 > /*! \file log.c
23 > * \brief Logger functions.
24 > * \version $Id$
25 > */
26  
27 + #include "stdinc.h"
28   #include "log.h"
29   #include "irc_string.h"
30   #include "ircd.h"
# Line 31 | Line 32
32   #include "s_misc.h"
33  
34  
35 < static struct {
35 > static struct
36 > {
37    char path[HYB_PATH_MAX + 1];
38    size_t size;
39    FILE *file;
# Line 89 | Line 91 | log_exceed_size(unsigned int type)
91    return (size_t)sb.st_size > log_type_table[type].size;
92   }
93  
94 < static void
94 > static void
95   log_write(enum log_type type, const char *message)
96   {
97    char buf[IRCD_BUFSIZE];

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)