make cast nicer
This commit is contained in:
parent
649b5425ac
commit
876738bd8e
@ -5,10 +5,7 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(__linux__)
|
#include "havealloca.h"
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "iob_internal.h"
|
#include "iob_internal.h"
|
||||||
#include "havebsdsf.h"
|
#include "havebsdsf.h"
|
||||||
|
|
||||||
@ -23,7 +20,7 @@ int64 iob_send(int64 s,io_batch* b) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (b->bytesleft==0) return 0;
|
if (b->bytesleft==0) return 0;
|
||||||
last=array_start(&b->b)+array_bytes(&b->b);
|
last=(iob_entry*)(((char*)array_start(&b->b))+array_bytes(&b->b));
|
||||||
v=alloca(b->bufs*sizeof(struct iovec));
|
v=alloca(b->bufs*sizeof(struct iovec));
|
||||||
total=0;
|
total=0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user