diff options
author | markm <markm@FreeBSD.org> | 1995-09-07 21:39:00 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1995-09-07 21:39:00 +0000 |
commit | 2539acf77b018acd7416a9857a14c466e55cd7e8 (patch) | |
tree | 96ff3578d62372822240f11a1567e45b880f3910 /eBones/lib/libkrb/netwrite.c | |
parent | eed9438eb23b62f78af7685dc226228e2bf5c524 (diff) | |
download | FreeBSD-src-2539acf77b018acd7416a9857a14c466e55cd7e8.zip FreeBSD-src-2539acf77b018acd7416a9857a14c466e55cd7e8.tar.gz |
Major cleanup of eBones code:
- Get all functions prototyped or at least defined before use.
- Make code compile (Mostly) clean with -Wall set
- Start to reduce the degree to which DES aka libdes is built in.
- get all functions to the same uniform standard of definition:
int
foo(a, b)
int a;
int *b;
{
:
}
- fix numerous bugs exposed by above processes.
Note - this replaces the previous work which used an unpopular function
definition style.
Diffstat (limited to 'eBones/lib/libkrb/netwrite.c')
-rw-r--r-- | eBones/lib/libkrb/netwrite.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eBones/lib/libkrb/netwrite.c b/eBones/lib/libkrb/netwrite.c index 7af91ff..f85f7ba 100644 --- a/eBones/lib/libkrb/netwrite.c +++ b/eBones/lib/libkrb/netwrite.c @@ -14,9 +14,7 @@ static char rcsid[] = #endif lint #endif -#include <stdio.h> #include <unistd.h> -#include <krb.h> /* * krb_net_write() writes "len" bytes from "buf" to the file @@ -27,7 +25,11 @@ static char rcsid[] = * XXX must not use non-blocking I/O */ -int krb_net_write(int fd, char *buf, int len) +int +krb_net_write(fd, buf, len) +int fd; +register char *buf; +int len; { int cc; register int wrlen = len; |