From adf797c295db2e0b24cc49efc7af70dafc3f10c2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 31 Oct 2020 20:55:36 +0100 Subject: Spacing after keywords (for) --- linux/Battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/Battery.c') diff --git a/linux/Battery.c b/linux/Battery.c index 0822ee9a..0d0a0ac4 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -168,7 +168,7 @@ static void Battery_getProcData(double* level, ACPresence* isOnAC) { static inline ssize_t xread(int fd, void *buf, size_t count) { // Read some bytes. Retry on EINTR and when we don't get as many bytes as we requested. size_t alreadyRead = 0; - for(;;) { + for (;;) { ssize_t res = read(fd, buf, count); if (res == -1 && errno == EINTR) continue; if (res > 0) { @@ -282,7 +282,7 @@ static void Battery_getSysData(double* level, ACPresence* isOnAC) { return; } char buffer[2] = ""; - for(;;) { + for (;;) { ssize_t res = read(fd3, buffer, 1); if (res == -1 && errno == EINTR) continue; break; -- cgit v1.2.3