* compat_recv.c: Include defines.h for prototypes
authorEzra Peisach <epeisach@mit.edu>
Fri, 23 Aug 2002 19:34:57 +0000 (19:34 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 23 Aug 2002 19:34:57 +0000 (19:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14759 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/compat_recv.c

index c0ac62abec90c25e08ccbbd96531453c3ec44f37..ead7e866b319b3574580ff7db7c71569c89666a3 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-23  Ezra Peisach  <epeisach@bu.edu>
+
+       * compat_recv.c: Include defines.h for prototypes.
+
 2002-08-07  Jen Selby  <jenselby@mit.edu>
        
        * klogind.M, kshd.M, login.M: changed manual sections 8c, 1c, and
index b60cdb00f687d746bb96478fb44bedca9c253475..7bb27feb1713c7e697497e4879c6bddbf3ff238a 100644 (file)
@@ -46,6 +46,8 @@
 #include <stdio.h>
 #include <string.h>
 
+#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;