From 9369099c49caf207f40f90aa78c59de53fe5fc6a Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Sat, 14 May 2011 11:04:43 +0000 Subject: int * -> socklen_t * in getsockopt() call --- usr.sbin/smtpd/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index 34d84ea7104..b0dc7a31865 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.44 2011/04/17 13:36:07 gilles Exp $ */ +/* $OpenBSD: util.c,v 1.45 2011/05/14 11:04:42 gilles Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -483,7 +483,8 @@ session_socket_no_linger(int fd) int session_socket_error(int fd) { - int error, len; + int error; + socklen_t len; len = sizeof(error); if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) == -1) -- cgit v1.2.3