chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib: Do proper substitutions on contrib files.
[tripe]
/
proxy
/
tripe-mitm.c
diff --git
a/proxy/tripe-mitm.c
b/proxy/tripe-mitm.c
index 7394aaaa53456fd7590c4f83c94d536ad5d9d4cf..4b0e44700f260ca6b926ecf332077b0dc9059a69 100644
(file)
--- a/
proxy/tripe-mitm.c
+++ b/
proxy/tripe-mitm.c
@@
-67,6
+67,8
@@
#include <catacomb/rand.h>
#include <catacomb/rc4.h>
#include <catacomb/rand.h>
#include <catacomb/rc4.h>
+#include "util.h"
+
/*----- Data structures ---------------------------------------------------*/
typedef struct peer {
/*----- Data structures ---------------------------------------------------*/
typedef struct peer {
@@
-407,7
+409,7
@@
static void adddelay(filter *f, unsigned ac, char **av)
static void dosend(filter *f, const octet *buf, size_t sz)
{
printf("send to `%s'\n", f->p_to->name);
static void dosend(filter *f, const octet *buf, size_t sz)
{
printf("send to `%s'\n", f->p_to->name);
-
write(f->p_to->sf.fd, buf, sz
);
+
IGNORE(write(f->p_to->sf.fd, buf, sz)
);
}
static void addsend(filter *f, unsigned ac, char **av)
}
static void addsend(filter *f, unsigned ac, char **av)