Revision 0580ac91 slirp/slirp.c
b/slirp/slirp.c | ||
---|---|---|
22 | 22 |
* THE SOFTWARE. |
23 | 23 |
*/ |
24 | 24 |
#include "qemu-common.h" |
25 |
#include "qemu-char.h" |
|
25 | 26 |
#include "slirp.h" |
26 | 27 |
#include "hw/hw.h" |
27 | 28 |
|
... | ... | |
47 | 48 |
|
48 | 49 |
static const uint8_t zero_ethaddr[6] = { 0, 0, 0, 0, 0, 0 }; |
49 | 50 |
|
50 |
char *slirp_special_ip = CTL_SPECIAL; |
|
51 |
const char *slirp_special_ip = CTL_SPECIAL;
|
|
51 | 52 |
int slirp_restrict; |
52 | 53 |
int do_slowtimo; |
53 | 54 |
int link_up; |
... | ... | |
809 | 810 |
if (!so) |
810 | 811 |
return; |
811 | 812 |
|
812 |
ret = soreadbuf(so, buf, size); |
|
813 |
ret = soreadbuf(so, (const char *)buf, size);
|
|
813 | 814 |
|
814 | 815 |
if (ret > 0) |
815 | 816 |
tcp_output(sototcpcb(so)); |
... | ... | |
1031 | 1032 |
if (!ex_ptr) |
1032 | 1033 |
return -EINVAL; |
1033 | 1034 |
|
1034 |
so->extra = ex_ptr->ex_exec; |
|
1035 |
so->extra = (void *)ex_ptr->ex_exec;
|
|
1035 | 1036 |
} |
1036 | 1037 |
|
1037 | 1038 |
return 0; |
Also available in: Unified diff