From ad09563264f6391e517682762c8a153caddd36f6 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 13 Feb 1998 03:00:34 +0000 Subject: [PATCH] * sendmsg.c: Explicitly include k5-int.h in order to get proper prototype of krb5_locate_kdc(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10429 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/ChangeLog | 5 +++++ src/krb524/sendmsg.c | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 9435ffc9b..6540661d9 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 12 21:58:56 1998 Tom Yu + + * sendmsg.c: Explicitly include k5-int.h in order to get proper + prototype of krb5_locate_kdc(). + Mon Feb 2 17:02:29 1998 Theodore Ts'o * Makefile.in: Define BUILDTOP and thisconfigdir in the Makefile diff --git a/src/krb524/sendmsg.c b/src/krb524/sendmsg.c index 5281359a9..bd22c6635 100644 --- a/src/krb524/sendmsg.c +++ b/src/krb524/sendmsg.c @@ -40,10 +40,8 @@ #include #include "krb524.h" -/* Cheat and grab this internal function from lib/krb5/os. */ -krb5_error_code krb5_locate_kdc - PROTOTYPE((krb5_context, const krb5_data *, - struct sockaddr **, int *)); +/* For krb5_locate_kdc() */ +#include /* * krb524_sendto_kdc: @@ -87,7 +85,7 @@ krb524_sendto_kdc (context, message, realm, reply) * find KDC location(s) for realm */ - if (retval = krb5_locate_kdc (context, realm, &addr, &naddr)) + if ((retval = krb5_locate_kdc(context, realm, &addr, &naddr, NULL, NULL))) return retval; if (naddr == 0) return KRB5_REALM_UNKNOWN; -- 2.26.2