From 810be60c845379bbe21c49c17139da02778b99e7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 12 Oct 2021 19:50:53 +0200 Subject: [PATCH] audiod: Rename handle_connect(). Now that it has the same signature as para_server's handle_connect(), doxygen gets confused and complains as follows: audiod_command.c:359: warning: argument 'accept_fd' of command @param is not found in the argument list of handle_connect(int fd) This is a false positive, but since "handle_connect" is not a very descriptive name for a public function in the first place, let's rename it. --- audiod.c | 2 +- audiod.h | 2 +- audiod_command.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/audiod.c b/audiod.c index 693c031a..12de0886 100644 --- a/audiod.c +++ b/audiod.c @@ -1092,7 +1092,7 @@ static int command_post_select(struct sched *s, void *context) ret = task_get_notification(ct->task); if (ret < 0) return ret; - ret = handle_connect(ct->fd); + ret = dispatch_local_connection(ct->fd); if (ret < 0) { PARA_NOTICE_LOG("%s\n", para_strerror(-ret)); if (ret == -E_AUDIOD_TERM) { diff --git a/audiod.h b/audiod.h index 18fb75b3..dedb038f 100644 --- a/audiod.h +++ b/audiod.h @@ -21,5 +21,5 @@ bool uid_is_whitelisted(uid_t uid); /* defined in audiod_command.c */ void audiod_status_dump(bool force); void close_stat_clients(void); -int handle_connect(int accept_fd); +int dispatch_local_connection(int accept_fd); void stat_client_write_item(int item_num); diff --git a/audiod_command.c b/audiod_command.c index 19537cf0..677abe34 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -371,8 +371,8 @@ EXPORT_AUDIOD_CMD_HANDLER(version) * connection to accept. * * \sa \ref para_accept(), \ref recv_cred_buffer(). - * */ -int handle_connect(int accept_fd) + */ +int dispatch_local_connection(int accept_fd) { int argc, ret, clifd; char buf[MAXLINE], **argv = NULL; -- 2.39.5