diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 14:41:53 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 14:41:53 +0200 |
commit | 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (patch) | |
tree | 684758441f5b431d0008253243034b6a4a29417c /src/ndelay.c | |
parent | 249866e3d1e11dc72eaa1305f4bb479ded92ef38 (diff) |
initial clang-format
Diffstat (limited to 'src/ndelay.c')
-rw-r--r-- | src/ndelay.c | 11 |
1 files changed, 6 insertions, 5 deletions
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 <sys/types.h> -#include <fcntl.h> #include "ndelay.h" +#include <fcntl.h> +#include <sys/types.h> + /** @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); } |