input_stream: pass const url to input_stream_open()

This commit is contained in:
Max Kellermann 2008-10-31 15:50:59 +01:00
parent a92903983d
commit 6d6e615825
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ void input_stream_global_finish(void)
} }
bool bool
input_stream_open(struct input_stream *is, char *url) input_stream_open(struct input_stream *is, const char *url)
{ {
is->seekable = false; is->seekable = false;
is->ready = false; is->ready = false;

View File

@ -57,7 +57,7 @@ void input_stream_global_finish(void);
/* if an error occurs for these 3 functions, then -1 is returned and errno /* if an error occurs for these 3 functions, then -1 is returned and errno
for the input stream is set */ for the input stream is set */
bool bool
input_stream_open(struct input_stream *is, char *url); input_stream_open(struct input_stream *is, const char *url);
bool bool
input_stream_seek(struct input_stream *is, off_t offset, int whence); input_stream_seek(struct input_stream *is, off_t offset, int whence);