summaryrefslogtreecommitdiff
path: root/src/fifo.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
commita6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (patch)
treeb88cc7a8457658d67e0321718556ac807f6bccf3 /src/fifo.c
parent00be7622c428f279872f84569f098ce16150f8a8 (diff)
format files
Diffstat (limited to 'src/fifo.c')
-rw-r--r--src/fifo.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/fifo.c b/src/fifo.c
index 5547294..f2da11e 100644
--- a/src/fifo.c
+++ b/src/fifo.c
@@ -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