/* See LICENSE file for copyright and license details. */
-#include "util.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <ctype.h>
static int cols = 80, lines = 25;
static int cx = 0, cy = 0;
static int c;
-int ptm, pts;
+static int ptm, pts;
static _Bool bold, digit, qmark;
static pid_t pid;
static RingBuffer buf;
int
main(int argc, char *argv[]) {
fd_set rfds;
- int r;
if(argc == 2 && !strcmp("-v", argv[1])) {
fprintf(stderr, "std-"VERSION", © 2008 Matthias-Christian Ott\n");
FD_SET(STDIN_FILENO, &rfds);
FD_SET(ptm, &rfds);
for(;;) {
- r = select(ptm + 1, &rfds, NULL, NULL, NULL);
- if(r == -1)
+ if(select(ptm + 1, &rfds, NULL, NULL, NULL) == -1)
err(EXIT_FAILURE, "cannot select");
if(FD_ISSET(ptm, &rfds)) {
do {