Skip to content

Commit d32d5cb

Browse files
committed
Fix warning of dropping 'const' signifier.
1 parent d8fc3cd commit d32d5cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dacp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ void set_dacp_server_information(rtsp_conn_info *conn) {
474474
debug_mutex_unlock(&dacp_server_information_lock, 3);
475475
}
476476

477-
void dacp_monitor_port_update_callback(char *dacp_id, uint16_t port) {
477+
void dacp_monitor_port_update_callback(const char *dacp_id, uint16_t port) {
478478
debug_mutex_lock(&dacp_server_information_lock, 500000, 2);
479479
debug(3,
480480
"dacp_monitor_port_update_callback with Remote ID \"%s\", target ID \"%s\" and port "

dacp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void relinquish_dacp_server_information(rtsp_conn_info *conn); // tell the DACP
3131
// that the player thread is no
3232
// longer associated with it.
3333
void dacp_monitor_port_update_callback(
34-
char *dacp_id, uint16_t port); // a callback to say the port is no longer in use
34+
const char *dacp_id, uint16_t port); // a callback to say the port is no longer in use
3535

3636
int dacp_send_command(const char *command, char **body, ssize_t *bodysize);
3737
int send_simple_dacp_command(const char *command);

0 commit comments

Comments
 (0)