From: Ezra Peisach Date: Fri, 26 Oct 2001 15:34:40 +0000 (+0000) Subject: * schpw.c (process_chpw_request): Use GETSOCKNAME_ARG3_TYPE X-Git-Tag: krb5-1.3-alpha1~997 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=672df5aa114c820c45b8372896e4a537ed149593;p=krb5.git * schpw.c (process_chpw_request): Use GETSOCKNAME_ARG3_TYPE instead of int as argument to getsockname(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13862 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/server/ChangeLog b/src/kadmin/server/ChangeLog index 25659f12d..9af1d19e3 100644 --- a/src/kadmin/server/ChangeLog +++ b/src/kadmin/server/ChangeLog @@ -1,3 +1,8 @@ +2001-10-26 Ezra Peisach + + * schpw.c (process_chpw_request): Use GETSOCKNAME_ARG3_TYPE + instead of int as argument to getsockname(). + 2001-06-29 Ezra Peisach * misc.c, server_stubs.c: Nuke rcsid. diff --git a/src/kadmin/server/schpw.c b/src/kadmin/server/schpw.c index 909d0f0e8..ddf623886 100644 --- a/src/kadmin/server/schpw.c +++ b/src/kadmin/server/schpw.c @@ -7,6 +7,10 @@ #include "misc.h" +#ifndef GETSOCKNAME_ARG3_TYPE +#define GETSOCKNAME_ARG3_TYPE int +#endif + krb5_error_code process_chpw_request(context, server_handle, realm, s, keytab, sockin, req, rep) @@ -30,7 +34,7 @@ process_chpw_request(context, server_handle, realm, s, keytab, sockin, krb5_ticket *ticket; krb5_data cipher, clear; struct sockaddr local_addr, remote_addr; - int addrlen; + GETSOCKNAME_ARG3_TYPE addrlen; krb5_replay_data replay; krb5_error krberror; int numresult;