a few warnings less

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1931 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-06-29 08:38:11 +00:00
parent 7799fc532f
commit 38646af787

View File

@@ -107,8 +107,9 @@ handle_udp(krb5_context context, struct descr *d)
{
unsigned char buf[1024];
struct sockaddr_in from;
size_t from_len = sizeof(from);
int from_len = sizeof(from);
size_t n;
n = recvfrom(d->s, buf, sizeof(buf), 0,
(struct sockaddr*)&from, &from_len);
if(n < 0){
@@ -137,8 +138,9 @@ handle_tcp(krb5_context context, struct descr *d, int index, int min_free)
{
unsigned char buf[1024];
struct sockaddr_in from;
size_t from_len = sizeof(from);
int from_len = sizeof(from);
size_t n;
if(d[index].timeout == 0){
int s;
from_len = sizeof(from);