]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod_command.c
Work around some clang warnings.
[paraslash.git] / audiod_command.c
index bfd7c4aa5df170235f24961813bc4cc2e69790fa..a54bd82d82c7c8f7fc1dbcaeed3faf63a1a08e12 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <regex.h>
 #include <sys/types.h>
-#include <dirent.h>
 #include <stdbool.h>
 
 #include "para.h"
@@ -132,7 +131,7 @@ void stat_client_write_item(int item_num)
                                (sc->flags & SCF_PARSER_FRIENDLY)? &pfpb : &pb;
                        char *msg = stat_item_values[item_num];
                        if (!b->buf)
-                               WRITE_STATUS_ITEM(b, item_num, "%s\n",
+                               (void)WRITE_STATUS_ITEM(b, item_num, "%s\n",
                                        msg? msg : "");
                        ret = write(fd, b->buf, b->offset);
                        if (ret == b->offset)
@@ -335,7 +334,7 @@ int com_stat(int fd, int argc, char **argv)
                char *item = stat_item_values[i];
                if (!((one << i) & mask))
                        continue;
-               WRITE_STATUS_ITEM(&b, i, "%s\n", item? item : "");
+               (void)WRITE_STATUS_ITEM(&b, i, "%s\n", item? item : "");
        }
        ret = client_write(fd, b.buf);
        if (ret >= 0)