1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

C API: source argument to nix_copy_value should be const

This commit is contained in:
José Luis Lafuente 2024-04-21 22:15:12 +02:00
parent 8d70db3251
commit 6acf02b32a
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
3 changed files with 15 additions and 2 deletions

View file

@ -513,7 +513,7 @@ nix_err nix_init_primop(nix_c_context * context, Value * value, PrimOp * p)
NIXC_CATCH_ERRS
}
nix_err nix_copy_value(nix_c_context * context, Value * value, Value * source)
nix_err nix_copy_value(nix_c_context * context, Value * value, const Value * source)
{
if (context)
context->last_err_code = NIX_OK;