commit 9944adb779442400e1a18ae060ff0c28c28abced parent 9dc0873e0329db6f09445f86f472a6141ae82a9e Author: sin <sin@2f30.org> Date: Sat, 8 Nov 2014 22:33:56 +0000 No need for goto Diffstat:
M | xbattmon.c | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xbattmon.c b/xbattmon.c @@ -198,11 +198,10 @@ loop(void) while (1) { pfd[0].fd = dpyfd; pfd[0].events = POLLIN; -again: n = poll(pfd, 1, pollinterval * 1000); if (n < 0) { if (errno == EINTR) - goto again; + continue; err(1, "poll"); } if (n == 0) {