summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp/ftp
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-01-10 00:14:16 +0000
committerKen Raeburn <raeburn@mit.edu>2003-01-10 00:14:16 +0000
commit85472780d136effef7eee1c18d3c9013943927ec (patch)
treef990daa17bd142221e62dcbbd06e72bdcb807474 /src/appl/gssftp/ftp
parent50ecaa127cc91b2b1878cc9a03026bc3058a8ff2 (diff)
downloadkrb5-85472780d136effef7eee1c18d3c9013943927ec.tar.gz
krb5-85472780d136effef7eee1c18d3c9013943927ec.tar.xz
krb5-85472780d136effef7eee1c18d3c9013943927ec.zip
Use socklen_t when passing address to socket functions.
Fixes compilation warnings on AIX 4.3.3. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15105 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/gssftp/ftp')
-rw-r--r--src/appl/gssftp/ftp/ChangeLog5
-rw-r--r--src/appl/gssftp/ftp/ftp.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog
index 385036d2b5..ba67eb5738 100644
--- a/src/appl/gssftp/ftp/ChangeLog
+++ b/src/appl/gssftp/ftp/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * ftp.c (hookup, initconn, dataconn): Use socklen_t when passing
+ address to socket functions.
+
2002-11-08 Ken Raeburn <raeburn@mit.edu>
* main.c (makeargv): Report an error if parsed arguments won't fit
diff --git a/src/appl/gssftp/ftp/ftp.c b/src/appl/gssftp/ftp/ftp.c
index d7f4840802..ffbb42cd58 100644
--- a/src/appl/gssftp/ftp/ftp.c
+++ b/src/appl/gssftp/ftp/ftp.c
@@ -196,7 +196,8 @@ char *
hookup(char* host, int port)
{
register struct hostent *hp = 0;
- int s, len;
+ int s;
+ socklen_t len;
#ifdef IP_TOS
#ifdef IPTOS_LOWDELAY
int tos;
@@ -1440,7 +1441,8 @@ die:
static int initconn()
{
register char *p, *a;
- int result, len, tmpno = 0;
+ int result, tmpno = 0;
+ socklen_t len;
int on = 1;
#ifndef NO_PASSIVE_MODE
int a1,a2,a3,a4,p1,p2;
@@ -1560,7 +1562,8 @@ bad:
FILE *
dataconn(char *lmode)
{
- int s, fromlen = sizeof (hisdataaddr);
+ int s;
+ socklen_t fromlen = sizeof (hisdataaddr);
#ifdef IP_TOS
#ifdef IPTOS_LOWDELAY
int tos;