Changed network timer back to signed int, and made it default to 0 again - SLiRP now works again.
This commit is contained in:
@@ -255,8 +255,8 @@ nelog(int lvl, const char *fmt, ...)
|
|||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
#define pclog nelog
|
#define pclog nelog
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ typedef struct {
|
|||||||
|
|
||||||
|
|
||||||
static int net_handlers_num;
|
static int net_handlers_num;
|
||||||
static uint32_t net_poll_time = 100;
|
static int net_poll_time = 0;
|
||||||
static NETPOLL net_handlers[8];
|
static NETPOLL net_handlers[8];
|
||||||
static NETCARD net_cards[] = {
|
static NETCARD net_cards[] = {
|
||||||
{ "None", "none", NULL },
|
{ "None", "none", NULL },
|
||||||
@@ -59,7 +59,7 @@ net_poll(void *priv)
|
|||||||
int c;
|
int c;
|
||||||
|
|
||||||
/* Reset the poll timer. */
|
/* Reset the poll timer. */
|
||||||
net_poll_time += (uint32_t)((double)TIMER_USEC * (1000000.0/8.0/3000.0));
|
net_poll_time += (int)((double)TIMER_USEC * (1000000.0/8.0/3000.0));
|
||||||
|
|
||||||
/* If we have active cards.. */
|
/* If we have active cards.. */
|
||||||
if (net_handlers_num) {
|
if (net_handlers_num) {
|
||||||
|
|||||||
Reference in New Issue
Block a user