Convert time-related variables to consistently use "unsigned long".
[srvx.git] / src / log.h
index 938b145a9913a60cf6a6888a48ae7e549bf222f5..8493e76f0c922401b5725af8b532f3fd8bde2aa6 100644 (file)
--- a/src/log.h
+++ b/src/log.h
@@ -1,11 +1,12 @@
 /* log.h - Diagnostic and error logging
  * Copyright 2000-2003 srvx Development Team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of srvx.
+ *
+ * srvx 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.  Important limitations are
- * listed in the COPYING file that accompanies this software.
+ * (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
@@ -13,7 +14,8 @@
  * 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, email srvx-maintainers@srvx.net.
+ * along with srvx; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
 #ifndef LOG_H
@@ -55,15 +57,15 @@ void log_replay(struct log_type *type, int is_write, const char *line);
 struct logEntry
 {
                                       /* field nullable in real entries? */
-    time_t            time;
-    enum log_severity slvl;
+    unsigned long     time;           /* no */
+    enum log_severity slvl;           /* no */
     struct userNode   *bot;           /* no */
     char              *channel_name;  /* yes */
     char              *user_nick;     /* no */
     char              *user_account;  /* yes */
     char              *user_hostmask; /* yes */
     char              *command;       /* no */
-    char              *default_desc;
+    char              *default_desc;  /* no */
     struct logEntry   *next;
     struct logEntry   *prev;
 };
@@ -72,8 +74,8 @@ struct logSearch
 {
     struct logEntry  masks;
     struct log_type  *type;
-    time_t           min_time;
-    time_t           max_time;
+    unsigned long    min_time;
+    unsigned long    max_time;
     unsigned int     limit;
     unsigned int     severities;
 };