commit a0b33d6d50d143f2ade2e8c4bc7c54210500f095
parent 2e6ecfd77a20af7528d0bdb03a20697778577a7b
Author: Kyle Milz <krwmilz@gmail.com>
Date: Sat, 11 Mar 2023 20:14:12 +0000
reduce indirection
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/popups.c b/popups.c
@@ -35,6 +35,7 @@ IN THE SOFTWARE.
#include <err.h>
#include <errno.h>
#include <fcntl.h> /* fcntl() */
+#include <poll.h> /* POLLIN */
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h> /* free(), atoi(), getenv() */
@@ -69,9 +70,6 @@ IN THE SOFTWARE.
# endif
#endif /* EWOULDBLOCK */
-#include <poll.h>
-#define XIO_IN POLLIN
-#define XIO_OUT POLLOUT
/*
@@ -943,7 +941,7 @@ static void dvips_ended(int);
static struct xchild print_child = {NULL, 0, True, dvips_ended};
static void read_from_dvips(void);
-static struct xio print_xio = {NULL, 0, XIO_IN, NULL,
+static struct xio print_xio = {NULL, 0, POLLIN, NULL,
read_from_dvips, NULL};
static int dvips_status;