diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 19:06:42 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 19:06:42 +0100 |
commit | 97f3b7e5520f6258e98af3090d8ef384e945b3cf (patch) | |
tree | 7d8adaaf0452e2847a04243d397ce17c98f2303d /src | |
parent | 1dd3cfb1ee12737e48f922ad64da25fb299ab2a2 (diff) | |
download | xine-lib-97f3b7e5520f6258e98af3090d8ef384e945b3cf.tar.gz xine-lib-97f3b7e5520f6258e98af3090d8ef384e945b3cf.tar.bz2 |
Update the network interfaces to accept constant strings where possible.
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_cdda.c | 6 |
1 files 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 ) |