mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
nix_store_is_valid_path param path should be const
This commit is contained in:
parent
7e4608a3f8
commit
44d096f68d
2 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ nix_store_get_version(nix_c_context * context, Store * store, nix_get_string_cal
|
||||||
NIXC_CATCH_ERRS
|
NIXC_CATCH_ERRS
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nix_store_is_valid_path(nix_c_context * context, Store * store, StorePath * path)
|
bool nix_store_is_valid_path(nix_c_context * context, Store * store, const StorePath * path)
|
||||||
{
|
{
|
||||||
if (context)
|
if (context)
|
||||||
context->last_err_code = NIX_OK;
|
context->last_err_code = NIX_OK;
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ void nix_store_path_free(StorePath * p);
|
||||||
* @param[in] path Path to check
|
* @param[in] path Path to check
|
||||||
* @return true or false, error info in context
|
* @return true or false, error info in context
|
||||||
*/
|
*/
|
||||||
bool nix_store_is_valid_path(nix_c_context * context, Store * store, StorePath * path);
|
bool nix_store_is_valid_path(nix_c_context * context, Store * store, const StorePath * path);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the physical location of a store path
|
* @brief Get the physical location of a store path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue