]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod_command.c
audiod_command.c: Dedox stat_item_valid().
[paraslash.git] / audiod_command.c
index 29c330f36a526d1004cb8595248fb75008033438..743d73a9277802fbb966b373c2af357c14a88155 100644 (file)
@@ -114,7 +114,7 @@ static int stat_client_add(int fd, uint64_t mask, int parser_friendly)
        ret = dup(fd);
        if (ret < 0)
                return -ERRNO_TO_PARA_ERROR(errno);
-       new_client = para_calloc(sizeof(*new_client));
+       new_client = zalloc(sizeof(*new_client));
        new_client->fd = ret;
        PARA_INFO_LOG("adding client on fd %d\n", new_client->fd);
        new_client->item_mask = mask;
@@ -186,14 +186,7 @@ void stat_client_write_item(int item_num)
        free(pfpb.buf);
 }
 
-/**
- * Check if string is a known status item.
- *
- * \param item Buffer containing the text to check.
- *
- * \return If \a item is a valid status item, the number of that status item is
- * returned. Otherwise, this function returns \p -E_UNKNOWN_STAT_ITEM.
- */
+/* Check if the given string is a known status item and return its index. */
 static int stat_item_valid(const char *item)
 {
        int i;