diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2003-01-10 00:14:16 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2003-01-10 00:14:16 +0000 |
| commit | 85472780d136effef7eee1c18d3c9013943927ec (patch) | |
| tree | f990daa17bd142221e62dcbbd06e72bdcb807474 /src/appl/user_user | |
| parent | 50ecaa127cc91b2b1878cc9a03026bc3058a8ff2 (diff) | |
| download | krb5-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/user_user')
| -rw-r--r-- | src/appl/user_user/ChangeLog | 5 | ||||
| -rw-r--r-- | src/appl/user_user/server.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/appl/user_user/ChangeLog b/src/appl/user_user/ChangeLog index 433e589a3..f62cd3c3b 100644 --- a/src/appl/user_user/ChangeLog +++ b/src/appl/user_user/ChangeLog @@ -1,3 +1,8 @@ +2003-01-09 Ken Raeburn <raeburn@mit.edu> + + * server.c (main): Use socklen_t when passing address to socket + functions. + 2002-08-29 Ken Raeburn <raeburn@mit.edu> * Makefile.in: Revert $(S)=>/ change, for Windows support. diff --git a/src/appl/user_user/server.c b/src/appl/user_user/server.c index b81d16200..022767df3 100644 --- a/src/appl/user_user/server.c +++ b/src/appl/user_user/server.c @@ -47,7 +47,8 @@ int argc; char *argv[]; { krb5_data pname_data, tkt_data; - int l, sock = 0; + int sock = 0; + socklen_t l; int retval; struct sockaddr_in l_inaddr, f_inaddr; /* local, foreign address */ krb5_creds creds, *new_creds; @@ -71,7 +72,7 @@ char *argv[]; int one = 1; int acc; struct servent *sp; - int namelen = sizeof(f_inaddr); + socklen_t namelen = sizeof(f_inaddr); if ((sock = socket(PF_INET, SOCK_STREAM, 0)) < 0) { com_err("uu-server", errno, "creating socket"); |
