summaryrefslogtreecommitdiff
path: root/kerberosIV/krb/netwrite.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1997-11-28 12:49:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1997-11-28 12:49:35 +0000
commitc7b7a71f79cef9dbb230f353d9bbf3d6ef3a5aed (patch)
tree5817f345511882de1c9e1a57f3095352ce671421 /kerberosIV/krb/netwrite.c
parent0857c8c45edb4fe59f82903f40d99a3aa19a04f7 (diff)
The first big step towards a complete upgrade to kth-krb4-0.9.7
Diffstat (limited to 'kerberosIV/krb/netwrite.c')
-rw-r--r--kerberosIV/krb/netwrite.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/kerberosIV/krb/netwrite.c b/kerberosIV/krb/netwrite.c
index c95033c0bf2..edd2d80b476 100644
--- a/kerberosIV/krb/netwrite.c
+++ b/kerberosIV/krb/netwrite.c
@@ -1,10 +1,4 @@
-/*
- * This software may now be redistributed outside the US.
- *
- * $Source: /cvs/OpenBSD/src/kerberosIV/krb/Attic/netwrite.c,v $
- *
- * $Locker: $
- */
+/* $KTH: netwrite.c,v 1.8 1997/06/19 23:56:25 assar Exp $ */
/*
Copyright (C) 1989 by the Massachusetts Institute of Technology
@@ -39,13 +33,12 @@ or implied warranty.
*/
int
-krb_net_write(fd, buf, len)
- int fd;
- register char *buf;
- int len;
+krb_net_write(int fd, const void *v, size_t len)
{
int cc;
- register int wrlen = len;
+ int wrlen = len;
+ const char *buf = (const char*)v;
+
do {
cc = write(fd, buf, wrlen);
if (cc < 0)