]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
use libc interfaces, not minios
authorAntti Kantee <pooka@iki.fi>
Mon, 26 Jan 2015 11:42:13 +0000 (11:42 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 26 Jan 2015 11:42:39 +0000 (11:42 +0000)
(why are there several copies of this code in the tree?)

tests/wopr/wopr.c

index 06cb7f071fdce829e2400108b427b4fac02b4e1c..5b52a7b51467a665403a5e412b9b82b9be9e7d51 100644 (file)
@@ -16,8 +16,6 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <mini-os/time.h>
-
 #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;
                }