]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix warning of dropping 'const' signifier.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 15 Feb 2026 08:13:44 +0000 (08:13 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 15 Feb 2026 08:13:44 +0000 (08:13 +0000)
dacp.c
dacp.h

diff --git a/dacp.c b/dacp.c
index a849c8a691968c4816d20a2037f39e2f1a42b8de..aeb3ca1fe34fb96a58253b76dc1208a13c7d7111 100644 (file)
--- a/dacp.c
+++ b/dacp.c
@@ -474,7 +474,7 @@ void set_dacp_server_information(rtsp_conn_info *conn) {
   debug_mutex_unlock(&dacp_server_information_lock, 3);
 }
 
-void dacp_monitor_port_update_callback(char *dacp_id, uint16_t port) {
+void dacp_monitor_port_update_callback(const char *dacp_id, uint16_t port) {
   debug_mutex_lock(&dacp_server_information_lock, 500000, 2);
   debug(3,
         "dacp_monitor_port_update_callback with Remote ID \"%s\", target ID \"%s\" and port "
diff --git a/dacp.h b/dacp.h
index ea44aacb8431a00e00c6a6218c95dfa6d4365700..8b5dc87676bd27900f3d5718d80ace6bea27c9b1 100644 (file)
--- a/dacp.h
+++ b/dacp.h
@@ -31,7 +31,7 @@ void relinquish_dacp_server_information(rtsp_conn_info *conn); // tell the DACP
                                                                // that the player thread is no
                                                                // longer associated with it.
 void dacp_monitor_port_update_callback(
-    char *dacp_id, uint16_t port); // a callback to say the port is no longer in use
+    const char *dacp_id, uint16_t port); // a callback to say the port is no longer in use
 
 int dacp_send_command(const char *command, char **body, ssize_t *bodysize);
 int send_simple_dacp_command(const char *command);