X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/2187a4e373badaab234317dbd5bc55131024e620..35305a49c0973c0e29e4a607c2b507a2d8face43:/src/log.c diff --git a/src/log.c b/src/log.c index 3b5d7fc..c0da9f6 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;