diff options
-rw-r--r-- | someblocks.c | 5 |
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]); } |