printfd(tcp, fds->fd);
if (fds->fd >= 0) {
tprints(", events=");
- printflags(pollflags, fds->events, "POLL???");
+ printflags(pollflags, (unsigned short) fds->events, "POLL???");
}
tprints("}");
char fdstr[sizeof(fmt) + sizeof(int) * 3];
sprintf(fdstr, fmt, fds.fd);
- const char *flagstr = sprintflags("", pollflags, fds.revents);
+ const char *flagstr = sprintflags("", pollflags,
+ (unsigned short) fds.revents);
if (outptr + strlen(fdstr) + strlen(flagstr) + 1 >=
end_outstr - (2 + 2 * sizeof(long) + sizeof(", ], ..."))) {