X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/2187a4e373badaab234317dbd5bc55131024e620..8dc0685213ead3f8896c83cadc130143ccc4d181:/src/log.c diff --git a/src/log.c b/src/log.c index 3b5d7fc..ef531ee 100644 --- a/src/log.c +++ b/src/log.c @@ -3,7 +3,7 @@ * * This file is part of x3. * - * srvx is free software; you can redistribute it and/or modify + * x3 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. @@ -541,7 +541,7 @@ log_audit(struct log_type *type, enum log_severity sev, struct userNode *user, s /* remove old elements from the linked list */ while (type->log_count > type->max_count) log_type_free_oldest(type); - while (type->log_oldest && (type->log_oldest->time + type->max_age < (unsigned long)now)) + while (type->log_oldest && (type->log_oldest->time + (time_t)type->max_age < now)) log_type_free_oldest(type); if (type->log_oldest) type->log_oldest->prev = 0; @@ -602,7 +602,7 @@ log_module(struct log_type *type, enum log_severity sev, const char *format, ... fprintf(stderr, "%s: %s\n", log_severity_names[sev], msgbuf); } if (sev == LOG_FATAL) { - assert(0 && "fatal message logged"); + //assert(0 && "fatal message logged"); _exit(1); } }