From 99fec28ac96282c88de64ee11fbbcbd18b148f2e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 22 Dec 2003 21:53:41 +0000 Subject: use socklen_t; andrushock@korovino.net --- libexec/ftp-proxy/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec') diff --git a/libexec/ftp-proxy/util.c b/libexec/ftp-proxy/util.c index 3c8b20eab91..b308063d94e 100644 --- a/libexec/ftp-proxy/util.c +++ b/libexec/ftp-proxy/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.16 2003/06/28 01:04:57 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.17 2003/12/22 21:53:40 deraadt Exp $ */ /* * Copyright (c) 1996-2001 @@ -77,7 +77,8 @@ get_proxy_env(int connected_fd, struct sockaddr_in *real_server_sa_ptr, struct sockaddr_in *client_sa_ptr) { struct pfioc_natlook natlook; - int slen, fd; + socklen_t slen; + int fd; slen = sizeof(*real_server_sa_ptr); if (getsockname(connected_fd, (struct sockaddr *)real_server_sa_ptr, -- cgit v1.2.3