diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 15:52:39 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 15:52:39 +0200 |
commit | a6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (patch) | |
tree | b88cc7a8457658d67e0321718556ac807f6bccf3 /src/fifo.c | |
parent | 00be7622c428f279872f84569f098ce16150f8a8 (diff) |
format files
Diffstat (limited to 'src/fifo.c')
-rw-r--r-- | src/fifo.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,9 +1,16 @@ -#include <sys/types.h> -#include <sys/stat.h> #include "fifo.h" +#include <sys/stat.h> +#include <sys/types.h> + #ifdef HASMKFIFO -int fifo_make(char *fn, int mode) { return mkfifo(fn,mode); } +int fifo_make(char *fn, int mode) +{ + return mkfifo(fn, mode); +} #else -int fifo_make(char *fn, int mode) { return mknod(fn,S_IFIFO | mode,0); } +int fifo_make(char *fn, int mode) +{ + return mknod(fn, S_IFIFO | mode, 0); +} #endif |