aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-31 15:50:59 +0100
committerMax Kellermann <max@duempel.org>2008-10-31 15:50:59 +0100
commit6d6e615825022647650df5cb88a05e3cd2dc42de (patch)
tree0ff602a3083abd0c1ba7ae8960201c0ab4927c58 /src
parenta92903983d0f955ddf7ec6446b196d988a6536b9 (diff)
downloadmpd-6d6e615825022647650df5cb88a05e3cd2dc42de.tar.gz
mpd-6d6e615825022647650df5cb88a05e3cd2dc42de.tar.xz
mpd-6d6e615825022647650df5cb88a05e3cd2dc42de.zip
input_stream: pass const url to input_stream_open()
Diffstat (limited to 'src')
-rw-r--r--src/input_stream.c2
-rw-r--r--src/input_stream.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/input_stream.c b/src/input_stream.c
index e4f5626c6..86c0b9246 100644
--- a/src/input_stream.c
+++ b/src/input_stream.c
@@ -52,7 +52,7 @@ void input_stream_global_finish(void)
}
bool
-input_stream_open(struct input_stream *is, char *url)
+input_stream_open(struct input_stream *is, const char *url)
{
is->seekable = false;
is->ready = false;
diff --git a/src/input_stream.h b/src/input_stream.h
index dc1739dde..c8d8068d3 100644
--- a/src/input_stream.h
+++ b/src/input_stream.h
@@ -57,7 +57,7 @@ void input_stream_global_finish(void);
/* if an error occurs for these 3 functions, then -1 is returned and errno
for the input stream is set */
bool
-input_stream_open(struct input_stream *is, char *url);
+input_stream_open(struct input_stream *is, const char *url);
bool
input_stream_seek(struct input_stream *is, off_t offset, int whence);