diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2009-02-06 02:45:21 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2009-02-06 02:45:21 +0000 |
| commit | 2538562271915fb954e8242a32443fc673ca13f4 (patch) | |
| tree | 42f1997bda742ca37af7d21b00dc4c0c5e0188c9 /src/lib/rpc/pmap_rmt.c | |
| parent | 80e2ebd2db159af751166664bb06192c4f32a69b (diff) | |
| download | krb5-2538562271915fb954e8242a32443fc673ca13f4.tar.gz krb5-2538562271915fb954e8242a32443fc673ca13f4.tar.xz krb5-2538562271915fb954e8242a32443fc673ca13f4.zip | |
Cleanup some warnings due to getsockname's third argument is sometimes
unsigned. Use GETSOCKNAME_ARG3_TYPE and fallback to int if not defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21904 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/pmap_rmt.c')
| -rw-r--r-- | src/lib/rpc/pmap_rmt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/rpc/pmap_rmt.c b/src/lib/rpc/pmap_rmt.c index d2e2ccdbc..dbe597da3 100644 --- a/src/lib/rpc/pmap_rmt.c +++ b/src/lib/rpc/pmap_rmt.c @@ -64,6 +64,9 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro"; static struct timeval timeout = { 3, 0 }; +#ifndef GETSOCKNAME_ARG3_TYPE +#define GETSOCKNAME_ARG3_TYPE int +#endif /* * pmapper remote-call-service interface. @@ -245,7 +248,8 @@ clnt_broadcast( AUTH *unix_auth = authunix_create_default(); XDR xdr_stream; register XDR *xdrs = &xdr_stream; - int outlen, inlen, fromlen, nets; + int outlen, inlen, nets; + GETSOCKNAME_ARG3_TYPE fromlen; SOCKET sock; int on = 1; #ifdef FD_SETSIZE |
