diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-31 20:55:36 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-11-02 22:15:01 +0100 |
commit | adf797c295db2e0b24cc49efc7af70dafc3f10c2 (patch) | |
tree | 22bbd800bd2ea7c0732efb19b9869ef3e6739969 /linux/Battery.c | |
parent | 374edb9ed5e9d5fa24cfe358258d82f69d9d430d (diff) |
Spacing after keywords (for)
Diffstat (limited to 'linux/Battery.c')
-rw-r--r-- | linux/Battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |