diff options
| author | Alexander Barton <alex@barton.de> | 2020-12-29 21:45:09 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2020-12-29 21:45:09 +0100 |
| commit | f3c89af845ede2dd2e1ccc5e9f1bfdc036409b88 (patch) | |
| tree | ab9313896e744ce5d7ea6d55650e1625ef7e7921 | |
| parent | d777ce6600825208cca21b97fd3ab55385de3424 (diff) | |
| download | ngircd-f3c89af845ede2dd2e1ccc5e9f1bfdc036409b88.tar.gz ngircd-f3c89af845ede2dd2e1ccc5e9f1bfdc036409b88.zip | |
Explicitely cast Conf_MaxPenaltyTime (time_t) to "long"
This fixes the following compiler warning, for example on OpenBSD:
conf.c: In function 'Conf_Test':
conf.c:391: warning: format '%ld' expects type 'long int', but argument
2 has type 'time_t'
Thanks to Götz Hoffart for reporting this!
| -rw-r--r-- | src/ngircd/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 1c5ba624..140d0b9f 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -388,7 +388,7 @@ Conf_Test( void ) printf(" MaxConnectionsIP = %d\n", Conf_MaxConnectionsIP); printf(" MaxJoins = %d\n", Conf_MaxJoins > 0 ? Conf_MaxJoins : -1); printf(" MaxNickLength = %u\n", Conf_MaxNickLength - 1); - printf(" MaxPenaltyTime = %ld\n", Conf_MaxPenaltyTime); + printf(" MaxPenaltyTime = %ld\n", (long)Conf_MaxPenaltyTime); printf(" MaxListSize = %d\n", Conf_MaxListSize); printf(" PingTimeout = %d\n", Conf_PingTimeout); printf(" PongTimeout = %d\n", Conf_PongTimeout); |