projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fec0cc
)
Removed write_n() function.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 27 Apr 2000 20:57:18 +0000
(20:57 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 27 Apr 2000 20:57:18 +0000
(20:57 +0000)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
564bce2
..
fdedf55
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-109,27
+109,6
@@
cp
return 0;
}
-/*
- write as many bytes as possible to the tap
- device, possibly in multiple turns.
-*/
-int write_n(int fd, void *buf, size_t len)
-{
- int r, done = 0;
-cp
- do
- {
- if((r = write(fd, buf, len)) < 0)
- return -1;
- len -= r;
- buf += r;
- done += r;
- } while(len > 0);
-
- return done;
-cp
-}
-
int xrecv(conn_list_t *cl, void *packet)
{
vpn_packet_t vp;