X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fsighandlers.c;h=e352d586e80c9c62743b8c01ec5d0ffe354be832;hp=e5345dbc311b403ef49ff72e4a1b210535160da0;hb=d8aba40f07d739692cdeccbd49a1c163998945ba;hpb=a13bb78b1e7adf7c261ac427341c397ef9a6a1ed diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index e5345dbc..e352d586 100644 --- a/src/ngircd/sighandlers.c +++ b/src/ngircd/sighandlers.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors. * * 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 @@ -33,6 +33,8 @@ #include "log.h" #include "ngircd.h" +#include "sighandlers.h" + static int signalpipe[2]; static const int signals_catch[] = { @@ -46,7 +48,11 @@ Dump_State(void) { Log(LOG_DEBUG, "--- Internal server state: %s ---", Client_ID(Client_ThisServer())); - Log(LOG_DEBUG, "time()=%ld", time(NULL)); +#ifdef HAVE_LONG_LONG + Log(LOG_DEBUG, "time()=%llu", (unsigned long long)time(NULL)); +#else + Log(LOG_DEBUG, "time()=%lu", (unsigned long)time(NULL)); +#endif Conf_DebugDump(); Conn_DebugDump(); Client_DebugDump();