X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=278e6ef69e9f38a081aea8637405de8fcdc6e600;hp=8d80f0cb7de9f1bd723c949a1fdf6cd9c9ea84ee;hb=0f4910b50116416fefb09ca67a615679067ef359;hpb=cd624494dc77e7283ee87bc474c55b0b1d2c2363 diff --git a/audiod_command.c b/audiod_command.c index 8d80f0cb..278e6ef6 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -84,7 +84,7 @@ struct stat_client { int fd; /** Bitmask of those status items the client is interested in. */ uint64_t item_mask; - /** See \ref stat_client flags. s*/ + /** See \ref stat_client flags. */ unsigned flags; /** Its entry in the list of stat clients. */ struct list_head node; @@ -189,8 +189,7 @@ void stat_client_write_item(int item_num) continue; b = (sc->flags & SCF_PARSER_FRIENDLY)? &pfpb : &pb; if (!b->buf) - (void)WRITE_STATUS_ITEM(b, item_num, "%s\n", - msg? msg : ""); + WRITE_STATUS_ITEM(b, item_num, "%s\n", msg? msg : ""); ret = write(sc->fd, b->buf, b->offset); if (ret == b->offset) continue; @@ -337,7 +336,7 @@ static int com_stat(int fd, int argc, char **argv) char *item = stat_item_values[i]; if (!((one << i) & mask)) continue; - (void)WRITE_STATUS_ITEM(&b, i, "%s\n", item? item : ""); + WRITE_STATUS_ITEM(&b, i, "%s\n", item? item : ""); } ret = client_write(fd, b.buf); if (ret >= 0) @@ -449,7 +448,7 @@ int handle_connect(int accept_fd, fd_set *rfds, uid_t *uid_whitelist) if (ret < 0) goto out; uid = ret; - PARA_INFO_LOG("connection from user %i, buf: %s\n", ret, buf); + PARA_INFO_LOG("connection from user %i, buf: %s\n", ret, buf); ret = check_perms(uid, uid_whitelist); if (ret < 0) goto out;