From 97f3b7e5520f6258e98af3090d8ef384e945b3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Wed, 2 Jan 2008 19:06:42 +0100 Subject: Update the network interfaces to accept constant strings where possible. --- src/input/input_cdda.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index 3cad27bbe..79a8e93bd 100644 --- a/src/input/input_cdda.c +++ b/src/input/input_cdda.c @@ -987,7 +987,7 @@ static int parse_url (char *urlbuf, char** host, int *port) { #endif static int XINE_FORMAT_PRINTF(4, 5) -network_command( xine_stream_t *stream, int socket, char *data_buf, char *msg, ...) +network_command( xine_stream_t *stream, int socket, char *data_buf, const char *msg, ...) { char buf[_BUFSIZ]; va_list args; @@ -1036,13 +1036,13 @@ network_command( xine_stream_t *stream, int socket, char *data_buf, char *msg, . #ifndef WIN32 -static int network_connect(xine_stream_t *stream, char *url ) +static int network_connect(xine_stream_t *stream, const char *_url ) { char *host; int port; int fd; - url = strdup(url); + char *url = strdup(_url); parse_url(url, &host, &port); if( !host || !strlen(host) || !port ) -- cgit v1.2.3