From 672df5aa114c820c45b8372896e4a537ed149593 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 26 Oct 2001 15:34:40 +0000 Subject: [PATCH] * 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 --- src/kadmin/server/ChangeLog | 5 +++++ src/kadmin/server/schpw.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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; -- 2.26.2