From f5f811ba50ed92841f47adbb3149f626ee227e0d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 6 Nov 2001 01:50:51 +0000 Subject: [PATCH] * sserver.c (main): Use GETPEERNAME_ARG3_TYPE instead of int git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13945 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/sample/sserver/ChangeLog | 4 ++++ src/appl/sample/sserver/sserver.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/appl/sample/sserver/ChangeLog b/src/appl/sample/sserver/ChangeLog index b1be5c3f8..041e776fb 100644 --- a/src/appl/sample/sserver/ChangeLog +++ b/src/appl/sample/sserver/ChangeLog @@ -1,3 +1,7 @@ +2001-11-05 Ezra Peisach + + * sserver.c (main): Use GETPEERNAME_ARG3_TYPE instead of int. + 2000-07-28 Ezra Peisach * sserver.c (main): Include unistd.h if present (for close diff --git a/src/appl/sample/sserver/sserver.c b/src/appl/sample/sserver/sserver.c index f28cdd2ba..979b0ffd4 100644 --- a/src/appl/sample/sserver/sserver.c +++ b/src/appl/sample/sserver/sserver.c @@ -57,6 +57,10 @@ extern krb5_deltat krb5_clockskew; +#ifndef GETPEERNAME_ARG3_TYPE +#define GETPEERNAME_ARG3_TYPE int +#endif + #define DEBUG static void @@ -76,7 +80,7 @@ main(argc, argv) krb5_auth_context auth_context = NULL; krb5_ticket * ticket; struct sockaddr_in peername; - int namelen = sizeof(peername); + GETPEERNAME_ARG3_TYPE namelen = sizeof(peername); int sock = -1; /* incoming connection fd */ krb5_data recv_data; short xmitlen; -- 2.26.2