X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=a54bd82d82c7c8f7fc1dbcaeed3faf63a1a08e12;hp=eed9fc154c7191513c3e315a65fe552641823b1b;hb=1d54a5412ef39590022e6dd4448881f267e96d0b;hpb=7584638594109184f329bead008f1dcdd9030767 diff --git a/audiod_command.c b/audiod_command.c index eed9fc15..a54bd82d 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -8,7 +8,6 @@ #include #include -#include #include #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) @@ -301,21 +300,6 @@ int com_tasks(int fd, __a_unused int argc, __a_unused char **argv) return ret; } -int com_kill(int fd, int argc, char **argv) -{ - int i, ret = 1; - if (argc < 2) - return -E_AUDIOD_SYNTAX; - for (i = 1; i < argc; i++) { - ret = kill_task(argv[i]); - if (ret < 0) - break; - } - if (ret > 0) - close(fd); - return ret; -} - int com_stat(int fd, int argc, char **argv) { int i, ret, parser_friendly = 0; @@ -350,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)