From 5117fa70afc0431e57231e216474a1f530094fd0 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 5 Apr 2021 23:00:12 +0200 Subject: stream: turn stream_info.open2's args argument const So nobody comes up with the "smart" idea to modify those again. --- stream/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index 2116fdde27..423ba12d91 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -109,7 +109,7 @@ typedef struct stream_info_st { // opts is set from ->opts int (*open)(struct stream *st); // Alternative to open(). Only either open() or open2() can be set. - int (*open2)(struct stream *st, struct stream_open_args *args); + int (*open2)(struct stream *st, const struct stream_open_args *args); const char *const *protocols; bool can_write; // correctly checks for READ/WRITE modes bool local_fs; // supports STREAM_LOCAL_FS_ONLY -- cgit v1.2.3