masqmail

diff src/listen.c @ 383:a2909de1818b

Port number are unsigned. This corrects the logfile output.
author markus schnalke <meillo@marmaro.de>
date Thu, 16 Feb 2012 11:12:39 +0100
parents 5781ba87df95
children 4848c16ed1c1
line diff
     1.1 --- a/src/listen.c	Wed Jan 18 09:54:24 2012 +0100
     1.2 +++ b/src/listen.c	Thu Feb 16 11:12:39 2012 +0100
     1.3 @@ -57,7 +57,8 @@
     1.4  	gchar *ident = NULL;
     1.5  
     1.6  	rem_host = g_strdup(inet_ntoa(sock_addr->sin_addr));
     1.7 -	logwrite(LOG_NOTICE, "connect from host %s, port %hd\n", rem_host, ntohs(sock_addr->sin_port));
     1.8 +	logwrite(LOG_NOTICE, "connect from host %s, port %hu\n",
     1.9 +			rem_host, ntohs(sock_addr->sin_port));
    1.10  
    1.11  	/* start child for connection: */
    1.12  	signal(SIGCHLD, sigchld_handler);