Skip to content

Commit

Permalink
make setup params const
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaloupka committed Apr 14, 2023
1 parent 1b3ec32 commit de40e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/during/package.d
Expand Up @@ -52,7 +52,7 @@ int setup(ref Uring uring, uint entries = 128, SetupFlags flags = SetupFlags.NON
*
* Returns: On succes it returns 0, `-errno` otherwise.
*/
int setup(ref Uring uring, uint entries, ref SetupParameters params) @safe
int setup(ref Uring uring, uint entries, ref const SetupParameters params) @safe
{
assert(uring.payload is null, "Uring is already initialized");
uring.payload = () @trusted { return cast(UringDesc*)calloc(1, UringDesc.sizeof); }();
Expand Down

0 comments on commit de40e28

Please sign in to comment.