]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod_command.c
Work around some clang warnings.
[paraslash.git] / audiod_command.c
index 05059ac06d2ff7f23a9648e14e54c71c904bfa9d..a54bd82d82c7c8f7fc1dbcaeed3faf63a1a08e12 100644 (file)
@@ -131,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)
@@ -334,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)