From 5ca654301b5f959219ab92827badfa6d514402de Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 10 Sep 2016 15:28:50 +0200 Subject: stream_cb: don't add "*://" to protocol list --list-protocol was printing a *:// entry, which looked strange at best. The "*" protocol was used to always match everything, so stream_cb.c could hook in custom protocols with a prefix chosen by the API user. Change it instead so that an empty protocol list means "match all", which also gets rid of the special-cased "*" entry. --- stream/stream_cb.c | 1 - 1 file changed, 1 deletion(-) (limited to 'stream/stream_cb.c') diff --git a/stream/stream_cb.c b/stream/stream_cb.c index fdef517bb8..fa8871ddf6 100644 --- a/stream/stream_cb.c +++ b/stream/stream_cb.c @@ -104,5 +104,4 @@ static int open_cb(stream_t *stream) const stream_info_t stream_info_cb = { .name = "stream_callback", .open = open_cb, - .protocols = (const char*const[]){ "*", NULL }, }; -- cgit v1.2.3