diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-02-26 03:07:56 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-02-26 03:07:56 +0000 |
commit | fe8ee2d8ff839d142f51b3d7818daa936e5a92aa (patch) | |
tree | 800ae308924e168782acebde34ec133e0b39bd56 /src | |
parent | 3bded0d6156cfcd895af9ae7afca9b45eac98862 (diff) | |
download | krb5-fe8ee2d8ff839d142f51b3d7818daa936e5a92aa.zip krb5-fe8ee2d8ff839d142f51b3d7818daa936e5a92aa.tar.gz krb5-fe8ee2d8ff839d142f51b3d7818daa936e5a92aa.tar.bz2 |
main() returns int - not void. Also cleanup unused variables
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12079 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/appl/sample/sclient/ChangeLog | 4 | ||||
-rw-r--r-- | src/appl/sample/sclient/sclient.c | 2 | ||||
-rw-r--r-- | src/appl/sample/sserver/ChangeLog | 5 | ||||
-rw-r--r-- | src/appl/sample/sserver/sserver.c | 9 |
4 files changed, 12 insertions, 8 deletions
diff --git a/src/appl/sample/sclient/ChangeLog b/src/appl/sample/sclient/ChangeLog index 7b7b477..7603506 100644 --- a/src/appl/sample/sclient/ChangeLog +++ b/src/appl/sample/sclient/ChangeLog @@ -1,3 +1,7 @@ +2000-02-25 Ezra Peisach <epeisach@mit.edu> + + * sclient.c (main): Return type of main should by int, not void. + 1999-10-26 Tom Yu <tlyu@mit.edu> * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index 3b8bb98..d2097b9 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -50,7 +50,7 @@ extern char *malloc(); #include "../sample.h" -void +int main(argc, argv) int argc; char *argv[]; diff --git a/src/appl/sample/sserver/ChangeLog b/src/appl/sample/sserver/ChangeLog index 04722ef..e8bbfbb 100644 --- a/src/appl/sample/sserver/ChangeLog +++ b/src/appl/sample/sserver/ChangeLog @@ -1,3 +1,8 @@ +2000-02-25 Ezra Peisach <epeisach@mit.edu> + + * sserver.c (main): Return type should be int, not void. Clenup + unused variables. + 1999-10-26 Tom Yu <tlyu@mit.edu> * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, diff --git a/src/appl/sample/sserver/sserver.c b/src/appl/sample/sserver/sserver.c index 06579f4..bd7c3df 100644 --- a/src/appl/sample/sserver/sserver.c +++ b/src/appl/sample/sserver/sserver.c @@ -63,7 +63,7 @@ usage(name) name); } -void +int main(argc, argv) int argc; char *argv[]; @@ -71,14 +71,13 @@ main(argc, argv) krb5_context context; krb5_auth_context auth_context = NULL; krb5_ticket * ticket; - krb5_address peeraddr; struct sockaddr_in peername; int namelen = sizeof(peername); int sock = -1; /* incoming connection fd */ krb5_data recv_data; short xmitlen; krb5_error_code retval; - krb5_principal server, client; + krb5_principal server; char repbuf[BUFSIZ]; char *cname; char *service = SAMPLE_SERVICE; @@ -191,10 +190,6 @@ main(argc, argv) sock = 0; } - peeraddr.addrtype = peername.sin_family; - peeraddr.length = sizeof(peername.sin_addr); - peeraddr.contents = (krb5_octet *)&peername.sin_addr; - if (retval = krb5_recvauth(context, &auth_context, (krb5_pointer)&sock, SAMPLE_VERSION, server, 0, /* no flags */ |