diff -up wapd-0.9/access.c~ wapd-0.9/access.c --- wapd-0.9/access.c~ 2008-01-13 14:41:21.000000000 +0200 +++ wapd-0.9/access.c 2008-01-22 00:14:46.000000000 +0200 @@ -217,7 +217,7 @@ int cWapSocket::Accept(void) close(newsock); newsock = -1; } - isyslog("WAPD: connect from %s, port %hd - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED"); + isyslog("WAPD: connect from %s, port %hu - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED"); } else if (errno != EINTR && errno != EAGAIN) LOG_ERROR; return newsock;