Skip to content

Commit

Permalink
Remove unnecessary casts from raop_rtp.
Browse files Browse the repository at this point in the history
  • Loading branch information
juhovh committed May 5, 2015
1 parent 4881e37 commit 5be4c19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/raop_rtp.c
Expand Up @@ -50,8 +50,8 @@ struct raop_rtp_s {
int metadata_len;
unsigned char *coverart;
int coverart_len;
const char *dacp_id;
const char *active_remote_header;
char *dacp_id;
char *active_remote_header;

int flush;
thread_handle_t thread;
Expand Down Expand Up @@ -168,8 +168,8 @@ raop_rtp_destroy(raop_rtp_t *raop_rtp)
raop_buffer_destroy(raop_rtp->buffer);
free(raop_rtp->metadata);
free(raop_rtp->coverart);
free((char *)raop_rtp->dacp_id);
free((char *)raop_rtp->active_remote_header);
free(raop_rtp->dacp_id);
free(raop_rtp->active_remote_header);
free(raop_rtp);
}
}
Expand Down Expand Up @@ -262,8 +262,8 @@ raop_rtp_process_events(raop_rtp_t *raop_rtp, void *cb_data)
int metadata_len;
unsigned char *coverart;
int coverart_len;
const char *dacp_id;
const char *active_remote_header;
char *dacp_id;
char *active_remote_header;

assert(raop_rtp);

Expand Down Expand Up @@ -334,9 +334,9 @@ raop_rtp_process_events(raop_rtp_t *raop_rtp, void *cb_data)
if (raop_rtp->callbacks.audio_remote_control_id) {
raop_rtp->callbacks.audio_remote_control_id(raop_rtp->callbacks.cls, dacp_id, active_remote_header);
}
free((char *)dacp_id);
free(dacp_id);
free(active_remote_header);
dacp_id = NULL;
free((char *)active_remote_header);
active_remote_header = NULL;
}
return 0;
Expand Down

0 comments on commit 5be4c19

Please sign in to comment.