From 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Tue, 9 Jul 2024 14:41:53 +0200 Subject: initial clang-format --- src/ndelay.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/ndelay.c') diff --git a/src/ndelay.c b/src/ndelay.c index f4b5eb8..8f6b5a9 100644 --- a/src/ndelay.c +++ b/src/ndelay.c @@ -1,7 +1,8 @@ -#include -#include #include "ndelay.h" +#include +#include + /** @file ndelay.c @author djb @@ -10,15 +11,15 @@ */ #ifndef O_NONBLOCK -#define O_NONBLOCK O_NDELAY + #define O_NONBLOCK O_NDELAY #endif int ndelay_on(int fd) { - return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK); + return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK); } int ndelay_off(int fd) { - return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK); + return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NONBLOCK); } -- cgit v1.2.3