diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2011-05-14 11:04:43 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2011-05-14 11:04:43 +0000 |
commit | 9369099c49caf207f40f90aa78c59de53fe5fc6a (patch) | |
tree | a123bb38bedea5941b11329c3e2dc6d3ed46985c /usr.sbin/smtpd | |
parent | 0f8d023f1d34705539b3b9ac74e351affe9325ff (diff) |
int * -> socklen_t * in getsockopt() call
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |