# HG changeset patch # User reimar # Date 1200226169 0 # Node ID 7b66e1a132de31c40bf8624ba94d747f9e7f79d0 # Parent 7d5823bd451730037183c5ce7a475c2acddbc77e stream_info_t opts and protocols point to constant data as well. diff -r 7d5823bd4517 -r 7b66e1a132de stream/stream.h --- a/stream/stream.h Sun Jan 13 12:01:57 2008 +0000 +++ b/stream/stream.h Sun Jan 13 12:09:29 2008 +0000 @@ -79,8 +79,8 @@ /// opts is at least in it's defaults settings and may have been /// altered by url parsing if enabled and the options string parsing. int (*open)(struct stream_st* st, int mode, void* opts, int* file_format); - char* protocols[MAX_STREAM_PROTOCOLS]; - void* opts; + const char* protocols[MAX_STREAM_PROTOCOLS]; + const void* opts; int opts_url; /* If this is 1 we will parse the url as an option string * too. Otherwise options are only parsed from the * options string given to open_stream_plugin */