summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-06 11:35:33 +0000
committermiod <miod@openbsd.org>2011-04-06 11:35:33 +0000
commit8b6d4079f58765faed05df1b6a5af6726c5371e8 (patch)
tree93e17c715fd7f5065aa4b266ed2f63c7d1a1d423
parentPOOL_DEBUG has nothing to do with portalfs (diff)
downloadwireguard-openbsd-8b6d4079f58765faed05df1b6a5af6726c5371e8.tar.xz
wireguard-openbsd-8b6d4079f58765faed05df1b6a5af6726c5371e8.zip
Local variables storing integer values and printed with %d should be
declared as integer types, not pointers, really.
-rw-r--r--usr.sbin/httpd/src/modules/proxy/proxy_ftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c b/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c
index 195e36f5bd7..f9910b226c5 100644
--- a/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c
+++ b/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proxy_ftp.c,v 1.17 2009/12/14 19:35:38 deraadt Exp $ */
+/* $OpenBSD: proxy_ftp.c,v 1.18 2011/04/06 11:35:33 miod Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
@@ -588,7 +588,8 @@ int ap_proxy_ftp_handler(request_rec *r, cache_req *c, char *url)
struct sockaddr_in *sin;
int pasvmode = 0;
char pasv[64];
- char *pstr, *host, *port;
+ char *pstr, *host;
+ int port;
/* stuff for LPSV/EPSV */
unsigned int paf, holen, ho[16], polen, po[2];