aboutsummaryrefslogtreecommitdiff
path: root/someblocks.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-04-18 09:27:05 -0500
committerRaphael Robatsch <raphael-git@tapesoftware.net>2022-04-19 08:42:34 +0200
commited1e85d804242dca7feec6ef493d60051822498b (patch)
tree1a11abfd3b2ed0dba350cd4d5cb924cb5ba11e9d /someblocks.c
parentc6d81febf625692c6afecfa5ea1489fe5a9d2be4 (diff)
use dprintf() instead of write() calls
Diffstat (limited to 'someblocks.c')
-rw-r--r--someblocks.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/someblocks.c b/someblocks.c
index b4aa1c2..3530de6 100644
--- a/someblocks.c
+++ b/someblocks.c
@@ -1,3 +1,4 @@
+#define _POSIX_C_SOURCE 200809L
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
@@ -142,9 +143,7 @@ void psomebar()
return;
}
}
- write(somebarFd, "status ", 7);
- write(somebarFd, statusstr[0], strlen(statusstr[0]));
- write(somebarFd, "\n", 1);
+ dprintf(somebarFd, "status %s\n", statusstr[0]);
}