diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-11-06 01:50:39 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-11-06 01:50:39 +0000 |
commit | 8ca2323364bbbe3054c4181317e3859c805ba5a2 (patch) | |
tree | 239835de9ff5da8b377e1efb2e4041f704e306fd /src/appl | |
parent | c8d1479f0ea0424c56394057cef10a7a67f6b367 (diff) | |
download | krb5-8ca2323364bbbe3054c4181317e3859c805ba5a2.zip krb5-8ca2323364bbbe3054c4181317e3859c805ba5a2.tar.gz krb5-8ca2323364bbbe3054c4181317e3859c805ba5a2.tar.bz2 |
* sclient.c (main): Use GETSOCKNAME_ARG3_TYPE instead of int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13944 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/sample/sclient/ChangeLog | 4 | ||||
-rw-r--r-- | src/appl/sample/sclient/sclient.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/appl/sample/sclient/ChangeLog b/src/appl/sample/sclient/ChangeLog index 5a1209e..7c66a0b 100644 --- a/src/appl/sample/sclient/ChangeLog +++ b/src/appl/sample/sclient/ChangeLog @@ -1,3 +1,7 @@ +2001-11-05 Ezra Peisach <epeisach@mit.edu> + + * sclient.c (main): Use GETSOCKNAME_ARG3_TYPE instead of int. + 2001-01-30 Ezra Peisach <epeisach@mit.edu> * sclient.c (main): Do not free auth_context unless diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index 44a7873..bd49bfe 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -54,6 +54,10 @@ extern char *malloc(); #include "../sample.h" +#ifndef GETSOCKNAME_ARG3_TYPE +#define GETSOCKNAME_ARG3_TYPE int +#endif + int main(argc, argv) int argc; @@ -62,7 +66,8 @@ char *argv[]; struct servent *sp; struct hostent *hp; struct sockaddr_in sockin, lsockin; - int sock, namelen; + int sock; + GETSOCKNAME_ARG3_TYPE namelen; krb5_context context; krb5_data recv_data; krb5_data cksum_data; |