From b634bd866106a4415158bbb8e0a71c3ed7ed9fcd Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 23 Aug 2002 19:34:57 +0000 Subject: [PATCH] * compat_recv.c: Include defines.h for prototypes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14759 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 4 ++++ src/appl/bsd/compat_recv.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c0ac62abe..ead7e866b 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +2002-08-23 Ezra Peisach + + * compat_recv.c: Include defines.h for prototypes. + 2002-08-07 Jen Selby * klogind.M, kshd.M, login.M: changed manual sections 8c, 1c, and diff --git a/src/appl/bsd/compat_recv.c b/src/appl/bsd/compat_recv.c index b60cdb00f..7bb27feb1 100644 --- a/src/appl/bsd/compat_recv.c +++ b/src/appl/bsd/compat_recv.c @@ -46,6 +46,8 @@ #include #include +#include "defines.h" + static int krb_v4_recvauth(long options, int fd, KTEXT ticket, char *service, char *instance, struct sockaddr_in *faddr, @@ -172,7 +174,7 @@ krb5_compat_recvauth(context, auth_context, if (len < 0 || len > 255) return KRB5_SENDAUTH_BADAUTHVERS; - buf = malloc(len); + buf = malloc((unsigned) len); if (!buf) return ENOMEM; @@ -317,7 +319,7 @@ krb5_compat_recvauth_version(context, auth_context, if (len < 0 || len > 255) return KRB5_SENDAUTH_BADAUTHVERS; - buf = malloc(len); + buf = malloc((unsigned) len); if (!buf) return ENOMEM; -- 2.26.2