]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
audiod: Rename handle_connect().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 12 Oct 2021 17:50:53 +0000 (19:50 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 25 Aug 2022 13:37:26 +0000 (15:37 +0200)
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
audiod.h
audiod_command.c

index 693c031a00269e3b93148d9bfbfe4a3d7cf7cd09..12de088639448ca9a227fa857bf99cb406e95b8b 100644 (file)
--- 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) {
index 18fb75b3a9f50bb5146e883260b452802752834a..dedb038fbf772848330b024b93efabce58c1c9d3 100644 (file)
--- 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);
index 19537cf0959f40effa9c64fa579e791e737338eb..677abe340bfdc801422caee920c611ff6a70d33a 100644 (file)
@@ -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;