]> arthur.barton.de Git - ngircd-alex.git/commit
Explicitely cast NumConnections etc. (size_t) to "long"
authorAlexander Barton <alex@barton.de>
Fri, 26 Apr 2024 12:29:28 +0000 (14:29 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 26 Apr 2024 12:29:28 +0000 (14:29 +0200)
commit6cb09e4c98ee8d38b6ca80454df17f1af5167001
treeab29b74144d7e4eb9c0be70ec45788e647959d37
parente348ac04e79ae57438c755a3228306120e4aeb63
Explicitely cast NumConnections etc. (size_t) to "long"

This fixes the following compiler warning, for example on OpenSolaris:

  conn.c: In function 'Conn_Handler':
  conn.c:798:28: warning: format '%ld' expects argument of type 'long int',
    but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
src/ngircd/conn.c