masqmail

changeset 430:180a7f6a9383

Adds a correct cast
author markus schnalke <meillo@marmaro.de>
date Sat, 07 Feb 2015 11:14:09 +0100
parents 5593964ec779
children 34c919a8d74e
files src/listen.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/listen.c	Thu Nov 20 20:36:20 2014 +0100
     1.2 +++ b/src/listen.c	Sat Feb 07 11:14:09 2015 +0100
     1.3 @@ -192,7 +192,8 @@
     1.4  				}
     1.5  				size = sizeof(clientname);
     1.6  				new = accept(sock, (struct sockaddr *)
     1.7 -						&clientname, &size);
     1.8 +						&clientname,
     1.9 +						(socklen_t *)&size);
    1.10  				if (new < 0) {
    1.11  					logwrite(LOG_ALERT, "accept: (ignoring): %s\n", strerror(errno));
    1.12  				} else {