Changed network timer back to signed int, and made it default to 0 again - SLiRP now works again.

This commit is contained in:
OBattler
2017-05-10 04:36:19 +02:00
parent b975839b41
commit 2e3ce399e2
2 changed files with 3 additions and 3 deletions

View File

@@ -255,8 +255,8 @@ nelog(int lvl, const char *fmt, ...)
vprintf(fmt, ap);
va_end(ap);
}
}
#endif
}
#define pclog nelog

View File

@@ -38,7 +38,7 @@ typedef struct {
static int net_handlers_num;
static uint32_t net_poll_time = 100;
static int net_poll_time = 0;
static NETPOLL net_handlers[8];
static NETCARD net_cards[] = {
{ "None", "none", NULL },
@@ -59,7 +59,7 @@ net_poll(void *priv)
int c;
/* 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 (net_handlers_num) {