From: Antti Kantee Date: Mon, 26 Jan 2015 11:42:13 +0000 (+0000) Subject: use libc interfaces, not minios X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a14a97d4d127b3a50d01e0171df3aec665d377a6;p=rumpuser-xen.git use libc interfaces, not minios (why are there several copies of this code in the tree?) --- diff --git a/tests/wopr/wopr.c b/tests/wopr/wopr.c index 06cb7f0..5b52a7b 100644 --- a/tests/wopr/wopr.c +++ b/tests/wopr/wopr.c @@ -16,8 +16,6 @@ #include #include -#include - #define MAXCONN 64 struct conn { @@ -159,16 +157,16 @@ donet(void) printf("WOPR reporting for duty on port 4096\n"); - zombietime = NOW(); + zombietime = time(NULL); for (;;) { - if (NOW() - zombietime >= SECONDS(1)) { + if (time(NULL) - zombietime >= 1) { processzombies(); - zombietime = NOW(); + zombietime = time(NULL); } rv = poll(pfds, maxfd, 1000); if (rv == 0) { - printf("still waiting ... %"PRId64"\n", NOW()); + printf("still waiting ... %"PRId64"\n", time(NULL)); continue; }