chiark / gitweb /
regress: fuzzraw: implement poll
[adns.git] / regress / hplayback.c.m4
index 4ab05c1e285178787b14e7f98e3afa77de908eff..dd98f0ec0b8bf1df4172286ebecfd07232318614 100644 (file)
@@ -265,6 +265,7 @@ static void Ppollfds(struct pollfd *fds, int nfds) {
     if (gotevents != fds->events) Psyntax("poll fds[].events changed");
     Pstring(", revents=",", revents= in pollfds");
     fds->revents= Ppollfdevents();
+    if (gotevents) FR_WRITE(fds->revents);
     Pstring("}","} in pollfds");
     Pstring(comma,"separator in pollfds");
     comma= ", ";