use net_write from roken

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5079 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-07-10 01:56:54 +00:00
parent 51d0f9a887
commit 9350c93c82

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -47,16 +47,6 @@ krb5_net_write (krb5_context context,
size_t len)
{
int fd = *((int *)p_fd);
char *cbuf = (char *)buf;
ssize_t count;
size_t rem = len;
while (rem > 0) {
count = write (fd, cbuf, rem);
if (count < 0)
return count;
cbuf += count;
rem -= count;
}
return len;
return net_write (fd, buf, len);
}